From 2fb674c46a8934584d6bd2962da3ebf15f29743b Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Mon, 24 Sep 2007 22:34:39 +0000 Subject: initscripts 1.0: checkroot.sh: Stop doing random positive login regarding fsck. * 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packages/initscripts/initscripts-1.0') diff --git a/packages/initscripts/initscripts-1.0/checkroot.sh b/packages/initscripts/initscripts-1.0/checkroot.sh index f3b8a0cd45..76bedcf4bd 100755 --- a/packages/initscripts/initscripts-1.0/checkroot.sh +++ b/packages/initscripts/initscripts-1.0/checkroot.sh @@ -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 -- cgit 1.2.3-korg