More informative failure messages or rdbreak.

master
Warren Togami 2009-07-15 21:10:16 -04:00
parent c3cd4c76d7
commit 81f83dab0a
1 changed files with 5 additions and 5 deletions

View File

@ -11,14 +11,14 @@ emergency_shell()
echo ; echo echo ; echo
echo $@ echo $@
source_all emergency source_all emergency
echo
if getarg rdshell || getarg rdbreak; then if getarg rdshell || getarg rdbreak; then
echo ; echo echo "Dropping to debug shell."
echo "Boot has failed, dropping to debug shell."
echo echo
sh -i sh -i
else else
echo "Boot has failed, sleeping forever." echo "Boot has failed, sleeping forever."
while :; do sleep 1;done while :; do sleep 365d;done
fi fi
} }


@ -170,7 +170,7 @@ while :; do
done done


# pre pivot scripts are sourced just before we switch over to the new root. # pre pivot scripts are sourced just before we switch over to the new root.
getarg 'rdbreak=pre-pivot' && emergency_shell getarg 'rdbreak=pre-pivot' && emergency_shell "Break pre-pivot"
source_all pre-pivot source_all pre-pivot


# by the time we get here, the root filesystem should be mounted. # by the time we get here, the root filesystem should be mounted.
@ -184,7 +184,7 @@ done
emergency_shell emergency_shell
} }


getarg rdbreak && emergency_shell getarg rdbreak && emergency_shell "Break before switch_root"


HARD="" HARD=""
while pidof udevd >/dev/null 2>&1; do while pidof udevd >/dev/null 2>&1; do