Quickstart for s6-linux-init
- Install all the s6-linux-init dependencies:
- Save and remove your old /etc/s6-linux-init directory, if you have one.
- Install s6-linux-init itself.
- Save your old /sbin/init, /sbin/telinit, /sbin/shutdown,
/sbin/halt, /sbin/poweroff and /sbin/reboot binaries.
- Make sure you have a /run directory.
- Edit the scripts in /etc/s6-linux-init/skel.
- Check that your devtmpfs is automounted by your kernel at boot time. If it is not,
add the -d /dev option to the s6-linux-init-maker command line below.
- As root, run:
rm -rf /tmp/blah
s6-linux-init-maker -1 -G "/sbin/getty 38400 tty1" /tmp/blah
rm -rf /etc/s6-linux-init/current
mv /tmp/blah /etc/s6-linux-init/current
cp -a /etc/s6-linux-init/current/bin/* /sbin/
- Reboot. Warning: use your old reboot command, that you saved, not the new one
that has just been created by s6-linux-init-maker, because you're still running on
your old init system and need to use a reboot command that matches it.
- After the reboot: congratulations! your machine is now running a s6-based init system.
- To shut the machine down, use /sbin/shutdown, /sbin/halt,
/sbin/poweroff or /sbin/reboot as usual.