aboutsummaryrefslogtreecommitdiff
path: root/layout/rootfs/run
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2019-05-04 00:10:26 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2019-05-04 00:10:26 +0000
commit7bb2006007c1996f33758e41db070252d4d3607f (patch)
tree3dc03d4f6a8867742961a3dea9ecc96c52d00a10 /layout/rootfs/run
parent1202c964c4e91083a3c60b41b9c11e220bfa759d (diff)
downloadlh-bootstrap-7bb2006007c1996f33758e41db070252d4d3607f.tar.xz
Make a lean and mean version, as a basis for filling an initramfs
Diffstat (limited to 'layout/rootfs/run')
-rwxr-xr-xlayout/rootfs/run/service/.s6-svscan/SIGHUP1
-rwxr-xr-xlayout/rootfs/run/service/.s6-svscan/SIGINT3
-rwxr-xr-xlayout/rootfs/run/service/.s6-svscan/SIGQUIT1
-rwxr-xr-xlayout/rootfs/run/service/.s6-svscan/SIGTERM1
-rwxr-xr-xlayout/rootfs/run/service/.s6-svscan/SIGUSR11
-rwxr-xr-xlayout/rootfs/run/service/.s6-svscan/SIGUSR21
-rwxr-xr-xlayout/rootfs/run/service/.s6-svscan/crash3
-rwxr-xr-xlayout/rootfs/run/service/.s6-svscan/finish3
-rwxr-xr-xlayout/rootfs/run/service/s6-linux-init-early-getty/run3
-rwxr-xr-xlayout/rootfs/run/service/s6-svscan-log/run7
-rw-r--r--layout/rootfs/run/shm/.empty (renamed from layout/rootfs/run/.empty)0
-rw-r--r--layout/rootfs/run/uncaught-logs/.empty0
12 files changed, 24 insertions, 0 deletions
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
diff --git a/layout/rootfs/run/.empty b/layout/rootfs/run/shm/.empty
index e69de29..e69de29 100644
--- a/layout/rootfs/run/.empty
+++ b/layout/rootfs/run/shm/.empty
diff --git a/layout/rootfs/run/uncaught-logs/.empty b/layout/rootfs/run/uncaught-logs/.empty
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/layout/rootfs/run/uncaught-logs/.empty