From 7bb2006007c1996f33758e41db070252d4d3607f Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sat, 4 May 2019 00:10:26 +0000 Subject: Make a lean and mean version, as a basis for filling an initramfs --- layout/rootfs/run/service/.s6-svscan/SIGHUP | 1 + layout/rootfs/run/service/.s6-svscan/SIGINT | 3 +++ layout/rootfs/run/service/.s6-svscan/SIGQUIT | 1 + layout/rootfs/run/service/.s6-svscan/SIGTERM | 1 + layout/rootfs/run/service/.s6-svscan/SIGUSR1 | 1 + layout/rootfs/run/service/.s6-svscan/SIGUSR2 | 1 + layout/rootfs/run/service/.s6-svscan/crash | 3 +++ layout/rootfs/run/service/.s6-svscan/finish | 3 +++ layout/rootfs/run/service/s6-linux-init-early-getty/run | 3 +++ layout/rootfs/run/service/s6-svscan-log/run | 7 +++++++ 10 files changed, 24 insertions(+) create mode 100755 layout/rootfs/run/service/.s6-svscan/SIGHUP create mode 100755 layout/rootfs/run/service/.s6-svscan/SIGINT create mode 100755 layout/rootfs/run/service/.s6-svscan/SIGQUIT create mode 100755 layout/rootfs/run/service/.s6-svscan/SIGTERM create mode 100755 layout/rootfs/run/service/.s6-svscan/SIGUSR1 create mode 100755 layout/rootfs/run/service/.s6-svscan/SIGUSR2 create mode 100755 layout/rootfs/run/service/.s6-svscan/crash create mode 100755 layout/rootfs/run/service/.s6-svscan/finish create mode 100755 layout/rootfs/run/service/s6-linux-init-early-getty/run create mode 100755 layout/rootfs/run/service/s6-svscan-log/run (limited to 'layout/rootfs/run/service') diff --git a/layout/rootfs/run/service/.s6-svscan/SIGHUP b/layout/rootfs/run/service/.s6-svscan/SIGHUP new file mode 100755 index 0000000..ef7d2c9 --- /dev/null +++ b/layout/rootfs/run/service/.s6-svscan/SIGHUP @@ -0,0 +1 @@ +#!/command/execlineb -P diff --git a/layout/rootfs/run/service/.s6-svscan/SIGINT b/layout/rootfs/run/service/.s6-svscan/SIGINT new file mode 100755 index 0000000..a547aad --- /dev/null +++ b/layout/rootfs/run/service/.s6-svscan/SIGINT @@ -0,0 +1,3 @@ +#!/command/execlineb -P + +reboot diff --git a/layout/rootfs/run/service/.s6-svscan/SIGQUIT b/layout/rootfs/run/service/.s6-svscan/SIGQUIT new file mode 100755 index 0000000..ef7d2c9 --- /dev/null +++ b/layout/rootfs/run/service/.s6-svscan/SIGQUIT @@ -0,0 +1 @@ +#!/command/execlineb -P diff --git a/layout/rootfs/run/service/.s6-svscan/SIGTERM b/layout/rootfs/run/service/.s6-svscan/SIGTERM new file mode 100755 index 0000000..ef7d2c9 --- /dev/null +++ b/layout/rootfs/run/service/.s6-svscan/SIGTERM @@ -0,0 +1 @@ +#!/command/execlineb -P diff --git a/layout/rootfs/run/service/.s6-svscan/SIGUSR1 b/layout/rootfs/run/service/.s6-svscan/SIGUSR1 new file mode 100755 index 0000000..ef7d2c9 --- /dev/null +++ b/layout/rootfs/run/service/.s6-svscan/SIGUSR1 @@ -0,0 +1 @@ +#!/command/execlineb -P diff --git a/layout/rootfs/run/service/.s6-svscan/SIGUSR2 b/layout/rootfs/run/service/.s6-svscan/SIGUSR2 new file mode 100755 index 0000000..ef7d2c9 --- /dev/null +++ b/layout/rootfs/run/service/.s6-svscan/SIGUSR2 @@ -0,0 +1 @@ +#!/command/execlineb -P diff --git a/layout/rootfs/run/service/.s6-svscan/crash b/layout/rootfs/run/service/.s6-svscan/crash new file mode 100755 index 0000000..c9ca6d5 --- /dev/null +++ b/layout/rootfs/run/service/.s6-svscan/crash @@ -0,0 +1,3 @@ +#!/command/execlineb -P + +reboot -f diff --git a/layout/rootfs/run/service/.s6-svscan/finish b/layout/rootfs/run/service/.s6-svscan/finish new file mode 100755 index 0000000..c9ca6d5 --- /dev/null +++ b/layout/rootfs/run/service/.s6-svscan/finish @@ -0,0 +1,3 @@ +#!/command/execlineb -P + +reboot -f diff --git a/layout/rootfs/run/service/s6-linux-init-early-getty/run b/layout/rootfs/run/service/s6-linux-init-early-getty/run new file mode 100755 index 0000000..c48b72d --- /dev/null +++ b/layout/rootfs/run/service/s6-linux-init-early-getty/run @@ -0,0 +1,3 @@ +#!/command/execlineb -P + +getty -L -H %%HOSTNAME%% 38400 /dev/%%CONSOLE%% diff --git a/layout/rootfs/run/service/s6-svscan-log/run b/layout/rootfs/run/service/s6-svscan-log/run new file mode 100755 index 0000000..896a294 --- /dev/null +++ b/layout/rootfs/run/service/s6-svscan-log/run @@ -0,0 +1,7 @@ +#!/command/execlineb -P + +redirfd -w 2 /dev/console +redirfd -w 1 /dev/null +redirfd -rnb 0 fifo +s6-applyuidgid -u 98 -g 98 -- +s6-log -bp -- t /run/uncaught-logs -- cgit v1.3.1