install bash blkid chmod cat cut dd dmesg env find grep head ip kbd_mode \
kill killall5 less ln \
ls lsmod mkdir mknod modprobe mount mountpoint openvt pidof ps rm sed \
- setfont sh sleep switchroot udevadm udevd umount \
+ setfont sh sleep switch_root udevadm udevd umount \
/lib/udev/console_init
# Copy modprobe.conf and friends over
kill $(pidof udevd)
vecho "Switching to new root and running init..."
-exec switchroot $(get_verbose) /sysroot
+exec switch_root /sysroot /sbin/init
echo exec switchroot failed...
bash
kill $(pidof udevd)
vecho "Transfering control to $init"
- exec switchroot $(get_verbose) /sysroot
+ exec switch_root /sysroot ${init}
echo "---------------------------------"
echo "WARNING: Error switching to real rootfs!"
echo "---------------------------------"