We should abort boot on some errors.
This commit is contained in:
parent
34fbf3db2f
commit
0b12faed7f
@ -1,5 +1,5 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
# Copyright 2007-2008 Roy Marples <roy@marples.name>
|
||||
# Copyright 2007-2009 Roy Marples <roy@marples.name>
|
||||
# All rights reserved. Released under the 2-clause BSD license.
|
||||
|
||||
description="Check and repair filesystems according to /etc/fstab"
|
||||
@ -76,11 +76,13 @@ start()
|
||||
ewend 1 "Filesystems repaired, but reboot needed"
|
||||
_reboot -f
|
||||
else
|
||||
ewend 1 "Filesystems still have errors; manual fsck required"
|
||||
ewend 1 "Filesystems still have errors;" \
|
||||
"manual fsck required"
|
||||
_abort
|
||||
fi;;
|
||||
4) if [ "${RC_UNAME}" = "Linux" ]; then
|
||||
ewend 1 "Fileystem errors left uncorrected"
|
||||
return 0
|
||||
ewend 1 "Fileystem errors left uncorrected, aborting"
|
||||
_abort
|
||||
else
|
||||
ewend 1 "Filesystems repaired, but reboot needed"
|
||||
_reboot
|
||||
|
Loading…
Reference in New Issue
Block a user