Patchwork [1/1] checkroot.sh: respect the value of ENABLE_ROOTFS_FSCK

login
register
mail settings
Submitter Qi.Chen@windriver.com
Date Aug. 8, 2013, 10:26 a.m.
Message ID <7666b33f8b5a263f4eaa3dfbd4dde70bc33235f6.1375957555.git.Qi.Chen@windriver.com>
Download mbox | patch
Permalink /patch/55329/
State Accepted
Commit 5c11cf4db8f43003fb7132b92a78659f70f07ce0
Headers show

Comments

Qi.Chen@windriver.com - Aug. 8, 2013, 10:26 a.m.
From: Chen Qi <Qi.Chen@windriver.com>

Previously, fsck is always disabled because the value of rootcheck in
the checkroot.sh script is always set to 'no'.

We should respect the value of ENABLE_ROOTFS_FSCK in /etc/default/rcS
to allow for filesystem check.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
 .../initscripts/initscripts-1.0/checkroot.sh       |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/meta/recipes-core/initscripts/initscripts-1.0/checkroot.sh b/meta/recipes-core/initscripts/initscripts-1.0/checkroot.sh
index ac21ee4..cf84cfa 100755
--- a/meta/recipes-core/initscripts/initscripts-1.0/checkroot.sh
+++ b/meta/recipes-core/initscripts/initscripts-1.0/checkroot.sh
@@ -22,7 +22,7 @@  test "$SULOGIN" = yes && sulogin -t 30 $CONSOLE
 exec 9< /etc/fstab
 rootmode=rw
 rootopts=rw
-rootcheck=no
+rootcheck=$ENABLE_ROOTFS_FSCK
 swap_on_md=no
 devfs=
 while read fs mnt type opts dump pass junk <&9