From 0b12faed7ff0b699565539bf1146b1977a4b9b67 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Mon, 16 Mar 2009 21:41:23 +0000 Subject: [PATCH] We should abort boot on some errors. --- init.d/fsck.in | 10 ++++++---- 1 file 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 +# Copyright 2007-2009 Roy Marples # 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