summaryrefslogtreecommitdiff
path: root/repo/system/bootscripts.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-03-02 16:24:16 +0000
committerdavidovski <david@davidovski.xyz>2022-03-02 16:24:16 +0000
commit6b3593e13e688d558be05846d1e2d9acf6e97c71 (patch)
tree6e0cdcd42b5d5aef366ac5d066da856e82c9a649 /repo/system/bootscripts.xibuild
parente8213fac46bfcb8068a883cb88b2bb1587f190f9 (diff)
added s6 init
Diffstat (limited to 'repo/system/bootscripts.xibuild')
-rw-r--r--repo/system/bootscripts.xibuild23
1 files changed, 17 insertions, 6 deletions
diff --git a/repo/system/bootscripts.xibuild b/repo/system/bootscripts.xibuild
index 6aaa485..72121f9 100644
--- a/repo/system/bootscripts.xibuild
+++ b/repo/system/bootscripts.xibuild
@@ -1,14 +1,13 @@
#!/bin/sh
-MAKEDEPS="make "
-DEPS="sh eudev"
+MAKEDEPS="make s6-linux-init s6-rc"
+DEPS="sh eudev s6 s6-rc s6-linux-utils s6-protable-utils s6-linux-init"
-PKG_VER=20210608
-SOURCE=https://www.linuxfromscratch.org/lfs/downloads/development/lfs-bootscripts-$PKG_VER.tar.xz
-DESC="Bootscripts to initiate the system on boot (from lfs)"
+SOURCE=https://xi.davidovski.xyz/git/bootscripts.git
+DESC="Bootscripts to initiate the system on boot"
package () {
- make DESTDIR=$PKG_DEST install
+ make DESTDIR=$PKG_DEST bootscripts
cat > $PKG_DEST/etc/inittab << "EOF"
# Begin /etc/inittab
@@ -39,5 +38,17 @@ su:S016:once:/sbin/sulogin
# End /etc/inittab
EOF
+ # Compile a basic database for boot
+ s6-rc-compile /etc/s6/db/basic /etc/s6/sv
+ ln -s /etc/s6/db/basic /etc/s6/db/current
+
+ # initialize s6 init base.
+ s6-linux-init-maker -1 -t 2 -L \
+ -f $PKG_DEST/etc/s6linux-init/skel \
+ -p "/usr/bin:/usr/sbin:/bin:/sbin" \
+ -D default \
+ -G "/sbin/agetty -L -8 tty1 115200" \
+ -c $PKG_DEST/etc/s6/base -u root -U utmp $PKG_DEST/etc/s6/base
+
}