diff --git a/initramfs/cleanup b/initramfs/cleanup index 82e82e2..1833b9b 100644 --- a/initramfs/cleanup +++ b/initramfs/cleanup @@ -34,6 +34,7 @@ if [ "$1" = "--killall5" ]; then kill -9 $LIST 2>/dev/null # SIGKILL fi + if [ "$1" = "--start" ]; then # this is our first call. We will setup everything so the actual init actually # reloads, but calls this script again instead of itself @@ -44,6 +45,7 @@ if [ "$1" = "--start" ]; then chroot /memory/union /sbin/telinit u fi + if [ "$1" = "--init" ]; then # now we're called from init to replace the process nr 1. # All other processes are already killed @@ -77,4 +79,3 @@ if [ "$1" = "--init" ]; then $(cat /lib/command 2>/dev/null) reboot -f fi -