initscripts 1.0: checkroot.sh: Stop doing random positive login regarding fsck.
authorPaul Sokolovsky <pmiscml@gmail.com>
Mon, 24 Sep 2007 22:34:39 +0000 (22:34 +0000)
committerPaul Sokolovsky <pmiscml@gmail.com>
Mon, 24 Sep 2007 22:34:39 +0000 (22:34 +0000)
* It's ok to do negative logic, for example limit scope of operation if we know
we can't do it (ex.: we don't support fscking something else but ext2/ext3,
so we have to ignore user's request to do fsck on other fstype).
* But it's not ok to do fsck if user didn't request it, or moreover if he
requested *not* to do it.

packages/initscripts/initscripts-1.0/checkroot.sh
packages/initscripts/initscripts_1.0.bb

index f3b8a0c..76bedcf 100755 (executable)
@@ -60,9 +60,9 @@ do
                        
                test "$pass" = 0 -o "$pass" = "" && rootcheck=no
                
-               # Enable fsck for ext2 and ext3 rootfs, disable for everything else                             
+               # Allow fsck for ext2 and ext3 rootfs, disable for everything else                              
                case "$type" in
-               ext2|ext3)      rootcheck=yes;;
+               ext2|ext3)      ;;
                *)              rootcheck=no;;
                esac
                
index 06a12c0..52413a7 100644 (file)
@@ -4,7 +4,7 @@ PRIORITY = "required"
 DEPENDS = "makedevs"
 RDEPENDS = "makedevs"
 LICENSE = "GPL"
-PR = "r100"
+PR = "r101"
 
 SRC_URI = "file://functions \
            file://halt \