]> code.ossystems Code Review - openembedded-core.git/commitdiff
checkroot.sh: respect the value of ENABLE_ROOTFS_FSCK
authorChen Qi <Qi.Chen@windriver.com>
Thu, 8 Aug 2013 10:26:47 +0000 (18:26 +0800)
committerSaul Wold <sgw@linux.intel.com>
Fri, 9 Aug 2013 15:54:47 +0000 (08:54 -0700)
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>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/recipes-core/initscripts/initscripts-1.0/checkroot.sh

index ac21ee41fadc3005ce305538be72fc438b20ca7a..cf84cfac5c5571805460b59e7f8fe87986687270 100755 (executable)
@@ -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