diff options
author | Roy Marples <roy@marples.name> | 2009-03-16 21:41:23 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2009-03-16 21:41:23 +0000 |
commit | 0b12faed7ff0b699565539bf1146b1977a4b9b67 (patch) | |
tree | 8fc65d3ac169da6025dc6a7e7f45e282d004abe0 /init.d | |
parent | 34fbf3db2f4ad0c01dbf20303c7f0face063625e (diff) |
We should abort boot on some errors.
Diffstat (limited to 'init.d')
-rw-r--r-- | init.d/fsck.in | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/init.d/fsck.in b/init.d/fsck.in index e233a5c7..d8e10c7c 100644 --- a/init.d/fsck.in +++ b/init.d/fsck.in @@ -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 |