From 5497725be02fba896c5a648880b9b2312c25a00c Mon Sep 17 00:00:00 2001 From: "Thomas Trepl (Moody)" Date: Tue, 16 Aug 2022 13:53:17 +0200 Subject: Updates... --- bootscripts/Makefile | 14 +++++++++++++- bootscripts/s6/services/default/contents.d/hostname | 0 bootscripts/s6/services/default/contents.d/mount-virtfs | 0 bootscripts/s6/services/default/type | 1 + bootscripts/s6/services/hostname/up | 1 + bootscripts/s6/services/mount-procfs/type | 1 + bootscripts/s6/services/mount-procfs/up | 1 + bootscripts/s6/services/mount-sysfs/type | 1 + bootscripts/s6/services/mount-sysfs/up | 1 + .../s6/services/mount-virtfs/contents.d/mount-procfs | 0 .../s6/services/mount-virtfs/contents.d/mount-sysfs | 0 bootscripts/s6/services/mount-virtfs/type | 1 + chapter03/packages.xml | 15 ++++++++++++--- chapter09/bootscripts6.xml | 2 +- chapter09/usage6.xml | 4 ++-- 15 files changed, 35 insertions(+), 7 deletions(-) create mode 100644 bootscripts/s6/services/default/contents.d/hostname create mode 100644 bootscripts/s6/services/default/contents.d/mount-virtfs create mode 100644 bootscripts/s6/services/default/type create mode 100644 bootscripts/s6/services/hostname/up create mode 100644 bootscripts/s6/services/mount-procfs/type create mode 100644 bootscripts/s6/services/mount-procfs/up create mode 100644 bootscripts/s6/services/mount-sysfs/type create mode 100644 bootscripts/s6/services/mount-sysfs/up create mode 100644 bootscripts/s6/services/mount-virtfs/contents.d/mount-procfs create mode 100644 bootscripts/s6/services/mount-virtfs/contents.d/mount-sysfs create mode 100644 bootscripts/s6/services/mount-virtfs/type diff --git a/bootscripts/Makefile b/bootscripts/Makefile index 16d26b317..47de45ad0 100644 --- a/bootscripts/Makefile +++ b/bootscripts/Makefile @@ -11,6 +11,18 @@ all: links install: all +install-s6: s6-files + +s6-dirs: + install -d -m ${DIRMODE} ${ETCDIR}/s6-rc/services + +s6-files: s6-dirs + cp -a s6/services/mount-virtfs ${ETCDIR}/s6-rc/services/ + cp -a s6/services/mount-procfs ${ETCDIR}/s6-rc/services/ + cp -a s6/services/mount-sysfs ${ETCDIR}/s6-rc/services/ + cp -a s6/services/hostname ${ETCDIR}/s6-rc/services/ + cp -a s6/services/default ${ETCDIR}/s6-rc/services/ + create-dirs: install -d -m ${DIRMODE} ${ETCDIR}/rc.d/rc0.d install -d -m ${DIRMODE} ${ETCDIR}/rc.d/rc1.d @@ -128,5 +140,5 @@ uninstall: ${SBIN}/ifup ${SBIN}/ifdown ${MAN8}/ifup.8 ${MAN8}/ifdown.8 \ ${ETCDIR}/sysconfig/rc -.PHONY: all create-dirs install files links rcS rc0 rc1 rc2 rc3 rc4 rc5 rc6 uninstall +.PHONY: all create-dirs install files links rcS rc0 rc1 rc2 rc3 rc4 rc5 rc6 uninstall install-s6 diff --git a/bootscripts/s6/services/default/contents.d/hostname b/bootscripts/s6/services/default/contents.d/hostname new file mode 100644 index 000000000..e69de29bb diff --git a/bootscripts/s6/services/default/contents.d/mount-virtfs b/bootscripts/s6/services/default/contents.d/mount-virtfs new file mode 100644 index 000000000..e69de29bb diff --git a/bootscripts/s6/services/default/type b/bootscripts/s6/services/default/type new file mode 100644 index 000000000..757b42211 --- /dev/null +++ b/bootscripts/s6/services/default/type @@ -0,0 +1 @@ +bundle diff --git a/bootscripts/s6/services/hostname/up b/bootscripts/s6/services/hostname/up new file mode 100644 index 000000000..a10440d60 --- /dev/null +++ b/bootscripts/s6/services/hostname/up @@ -0,0 +1 @@ +backtick -En hostname { cat /etc/hostname } s6-hostname $hostname diff --git a/bootscripts/s6/services/mount-procfs/type b/bootscripts/s6/services/mount-procfs/type new file mode 100644 index 000000000..bdd22a185 --- /dev/null +++ b/bootscripts/s6/services/mount-procfs/type @@ -0,0 +1 @@ +oneshot diff --git a/bootscripts/s6/services/mount-procfs/up b/bootscripts/s6/services/mount-procfs/up new file mode 100644 index 000000000..f198029aa --- /dev/null +++ b/bootscripts/s6/services/mount-procfs/up @@ -0,0 +1 @@ +s6-mount -wt proc proc /proc diff --git a/bootscripts/s6/services/mount-sysfs/type b/bootscripts/s6/services/mount-sysfs/type new file mode 100644 index 000000000..bdd22a185 --- /dev/null +++ b/bootscripts/s6/services/mount-sysfs/type @@ -0,0 +1 @@ +oneshot diff --git a/bootscripts/s6/services/mount-sysfs/up b/bootscripts/s6/services/mount-sysfs/up new file mode 100644 index 000000000..780be7bc4 --- /dev/null +++ b/bootscripts/s6/services/mount-sysfs/up @@ -0,0 +1 @@ +s6-mount -wt sysfs sys /sys diff --git a/bootscripts/s6/services/mount-virtfs/contents.d/mount-procfs b/bootscripts/s6/services/mount-virtfs/contents.d/mount-procfs new file mode 100644 index 000000000..e69de29bb diff --git a/bootscripts/s6/services/mount-virtfs/contents.d/mount-sysfs b/bootscripts/s6/services/mount-virtfs/contents.d/mount-sysfs new file mode 100644 index 000000000..e69de29bb diff --git a/bootscripts/s6/services/mount-virtfs/type b/bootscripts/s6/services/mount-virtfs/type new file mode 100644 index 000000000..757b42211 --- /dev/null +++ b/bootscripts/s6/services/mount-virtfs/type @@ -0,0 +1 @@ +bundle diff --git a/chapter03/packages.xml b/chapter03/packages.xml index 4edc5950c..fa6080f0f 100644 --- a/chapter03/packages.xml +++ b/chapter03/packages.xml @@ -183,7 +183,7 @@ - execline (&execline-version;) - &execline-size;: + Execline (&execline-version;) - &execline-size;: Home page: Download: @@ -409,7 +409,7 @@ - + LFS-Bootscripts (&lfs-bootscripts-version;) - &lfs-bootscripts-size;: Home page: @@ -666,7 +666,7 @@ - skalibs (&skalibs-version;) - &skalibs-size;: + Skalibs (&skalibs-version;) - &skalibs-size;: Home page: Download: @@ -701,6 +701,15 @@ + + S6-utils (&s6-utils-version;) - &s6-utils-size;: + + Home page: + Download: + MD5 sum: &s6-utils-md5; + + + Sysklogd (&sysklogd-version;) - &sysklogd-size;: diff --git a/chapter09/bootscripts6.xml b/chapter09/bootscripts6.xml index 3e3d2779f..8b966b5f8 100644 --- a/chapter09/bootscripts6.xml +++ b/chapter09/bootscripts6.xml @@ -45,7 +45,7 @@ Install the package: -make install +make install-s6 diff --git a/chapter09/usage6.xml b/chapter09/usage6.xml index 081340d17..ae1ea7f51 100644 --- a/chapter09/usage6.xml +++ b/chapter09/usage6.xml @@ -102,12 +102,12 @@ directory representing the current setup: s6-linux-init-maker -1 -G "/sbin/agetty -J 38400 tty1" $tmpdir -mv $tmpdir /etc/etc/s6-linux-init/current +mv $tmpdir /etc/s6-linux-init/current Install the essential programs in the file system: -cp -av /etc/etc/s6-linux-init/current/bin/* /sbin/ +cp -av /etc/s6-linux-init/current/bin/* /sbin/ -- cgit v1.2.3-54-g00ecf