--- checkfs.orig Tue Jul 16 17:46:57 2002 +++ checkfs Thu Jul 25 11:05:03 2002 @@ -20,19 +20,31 @@ eend $? "Failed to setup the LVM" fi - ebegin "Checking all filesystems" - fsck -R -A -a - if [ "$?" -eq 0 ] + if [ -f /fastboot ] then - eend 0 - elif [ "$?" -eq 1 ] - then - ewend 1 "Filesystem errors corrected." - #everything should be ok, so return a pass - return 0 + rm -f /fastboot else - eend 2 "Fsck could not correct all errors, manual repair needed" - /sbin/sulogin ${CONSOLE} + ebegin "Checking all filesystems" + if [ -f /forcefsck ] + then + ewarn "A full fsck has been forced" + fsck -C -R -A -a -f + rm /forcefsck + else + fsck -R -A -a + fi + if [ "$?" -eq 0 ] + then + eend 0 + elif [ "$?" -eq 1 ] + then + ewend 1 "Filesystem errors corrected." + #everything should be ok, so return a pass + return 0 + else + eend 2 "Fsck could not correct all errors, manual repair needed" + /sbin/sulogin ${CONSOLE} + fi fi }