diff options
-rw-r--r-- | init | 23 |
1 files changed, 14 insertions, 9 deletions
@@ -95,20 +95,17 @@ fi if [ "${break}" = "y" ]; then echo ":: Break requested, type 'exit' to resume operation" - echo " NOTE: klibc contains no 'ls' binary, used 'echo *' instead" + echo " NOTE: klibc contains no 'ls' binary, use 'echo *' instead" PS1="ramfs$ " /bin/sh -i fi -#Special handling if udev is running -udevpid=$(/bin/minips -C udevd -o pid=) -if [ "x${udevpid}" != "x" ]; then - /bin/kill -9 $udevpid - /bin/sleep 0.01 -fi - if [ ! -e "${root}" ]; then err "Unable to create/detect root device '${root}'" - msg "Dropping to a recovery shell... type 'exit' to reboot" + echo "Dropping to a recovery shell... type 'exit' to reboot" + echo "NOTE: klibc contains no 'ls' binary, use 'echo *' instead" + echo "" + echo "If the device '${root}' gets created while you are here," + echo "try adding 'rootdelay=8' or higher to the kernel command-line" PS1="ramfs$ " /bin/sh -i msg "Rebooting..." /bin/reboot @@ -119,6 +116,14 @@ else fi fi +#Special handling if udev is running +udevpid=$(/bin/minips -C udevd -o pid=) +if [ "x${udevpid}" != "x" ]; then + /bin/kill -9 $udevpid + /bin/sleep 0.01 +fi + + echo "/sbin/modprobe" > /proc/sys/kernel/modprobe exec /bin/kinit -- "root=${root}" ${kinit_params} "${runlevel}" > /dev/null 2>&1 |