Add emergency shell if filesystem check fail.

Fix checkfstab for UUID entries.
This commit is contained in:
Arne Fitzenreiter
2010-11-23 14:04:49 +01:00
parent 35f9033587
commit 94f6d10bad
2 changed files with 14 additions and 7 deletions

View File

@@ -98,19 +98,17 @@ case "${1}" in
if [ "${error_value}" -gt 3 -a "${error_value}" -lt 16 ]; then
echo_failure
sleep 2
boot_mesg -n "FAILURE:\n\nFile system errors" ${FAILURE}
boot_mesg -n " were encountered that could not be"
boot_mesg -n " fixed automatically. This system"
boot_mesg -n " cannot continue to boot and will"
boot_mesg -n " therefore be halted until those"
boot_mesg -n " errors are fixed manually by a"
boot_mesg -n " System Administrator.\n\nAfter you"
boot_mesg -n " press Enter, this system will be"
boot_mesg -n " halted and powered off."
boot_mesg -n "\n\nPress Enter to continue or wait a minute..." ${INFO}
boot_mesg -n " System Administrator.\n\n"
boot_mesg "" ${NORMAL}
read -t 60 ENTER
${rc_base}/init.d/halt stop
sulogin
reboot -f
fi
if [ "${error_value}" -ge 16 ]; then