diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2013-08-08 18:26:47 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-08-12 13:09:53 +0100 |
commit | 5695ec80f53c965f03ebb05a8c46ddfdc2663f9e (patch) | |
tree | fed8a197ae35cc3de9f5a96a6306ebc376650f2d | |
parent | 3d1a60a42ad4f634acdd01e53ab1f460243351f9 (diff) | |
download | poky-5695ec80f53c965f03ebb05a8c46ddfdc2663f9e.tar.gz |
checkroot.sh: respect the value of ENABLE_ROOTFS_FSCK
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.
(From OE-Core rev: 5c11cf4db8f43003fb7132b92a78659f70f07ce0)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-x | meta/recipes-core/initscripts/initscripts-1.0/checkroot.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-core/initscripts/initscripts-1.0/checkroot.sh b/meta/recipes-core/initscripts/initscripts-1.0/checkroot.sh index ac21ee41fa..cf84cfac5c 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 | |||
22 | exec 9< /etc/fstab | 22 | exec 9< /etc/fstab |
23 | rootmode=rw | 23 | rootmode=rw |
24 | rootopts=rw | 24 | rootopts=rw |
25 | rootcheck=no | 25 | rootcheck=$ENABLE_ROOTFS_FSCK |
26 | swap_on_md=no | 26 | swap_on_md=no |
27 | devfs= | 27 | devfs= |
28 | while read fs mnt type opts dump pass junk <&9 | 28 | while read fs mnt type opts dump pass junk <&9 |