/etc/init.d/checkroot - from baselayout-1.8.5.8 does a "fsck -a" and then uses "$?" in a [..] and then uses it again. This means that if fsck returns "4" and the first comparison with "0" sets "$?" to 1 and then the camparison with "1" succeeds. Here is a patch:- *** checkroot Tue Feb 25 17:55:41 2003 --- checkroot.orig Sun Feb 2 10:31:03 2003 *************** *** 25,35 **** else fsck -a / fi ! rc=$? ! if [ $rc -eq 0 ] then eend 0 ! elif [ $rc -eq 1 ] then ewend 1 "Filesystem repaired" else --- 25,34 ---- else fsck -a / fi ! if [ "$?" -eq 0 ] then eend 0 ! elif [ "$?" -eq 1 ] then ewend 1 "Filesystem repaired" else
Already fixed, will be in next official release: ----------------------------------- 26 Jan 2003; Martin Schlemmer <azarah@gentoo.org>: Fix start-stop-daemon to check the call to nice() correctly for failure, closing bug #14359, thanks to YAMAKURA Makoto <makoto@dsb.club.ne.jp>. Fix globbing $? when checking return value of fsck in /etc/init.d/checkroot and /etc/init.d/checkfs. This closes bug #13320, thanks to good work from Malcolm Scott <m@lcolm.org.uk>.