[Lunar-commits] r17317 - moonbase/trunk/filesys/e2fsprogs/init.d

Auke Kok sofar at lunar-linux.org
Mon Nov 14 22:45:03 UTC 2005


Author: sofar
Date: 2005-11-14 22:44:59 +0000 (Mon, 14 Nov 2005)
New Revision: 17317

Modified:
   moonbase/trunk/filesys/e2fsprogs/init.d/mount
Log:
Attention all devs: about 5 months ago this script was patched in such a away that the automatic fsck function was completely removed. That is not very nice. Don't do that. Thanks - Auke.


Modified: moonbase/trunk/filesys/e2fsprogs/init.d/mount
===================================================================
--- moonbase/trunk/filesys/e2fsprogs/init.d/mount	2005-11-14 22:22:05 UTC (rev 17316)
+++ moonbase/trunk/filesys/e2fsprogs/init.d/mount	2005-11-14 22:44:59 UTC (rev 17317)
@@ -217,24 +217,25 @@
    fi
 
    if [ -f /forcefsck ] ; then 
+      FORCE="-f"
+   fi
 
-      exit_status=`run_with_msg_and_exit_codes " * Checking all file systems : " "fsck -A -y" "0" "1" ""`
+   exit_status=`run_with_msg_and_exit_codes " * Checking all file systems : " "fsck -A -y $FORCE" "0" "1" ""`
 
-      case ${exit_status} in 
-         0|1) # exited fine ( 0 ), or errors were fixed (1) 
-            rm -f /forcefsck
-            ;;
-         *)  
-            echo  -e " * fsck failed."
-            echo     " * Please repair your file system"
-            echo     " * manually by running /sbin/fsck"
-            echo     " * without the -a option"
-            sulogin
-            reboot  -f
-            ;;
-       esac
+   case ${exit_status} in 
+      0|1) # exited fine ( 0 ), or errors were fixed (1) 
+         rm -f /forcefsck
+         ;;
+      *)  
+         echo  -e " * fsck failed."
+         echo     " * Please repair your file system"
+         echo     " * manually by running /sbin/fsck"
+         echo     " * without the -p option"
+         sulogin
+         reboot  -f
+         ;;
+   esac
  
-   fi
   
    run_with_msg " * Remounting root readwrite : " "mount -n -o remount,rw /"
 



More information about the Lunar-commits mailing list