[OE-core] [PATCH 2/3] initscripts: minor fixes to checkroot.sh
wenzong.fan at windriver.com
wenzong.fan at windriver.com
Wed Nov 1 06:04:03 UTC 2017
From: Wenzong Fan <wenzong.fan at windriver.com>
Fix checkroot.sh issue while booting:
sh: no: unknown operand
Signed-off-by: Wenzong Fan <wenzong.fan at windriver.com>
---
meta/recipes-core/initscripts/initscripts-1.0/checkroot.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/meta/recipes-core/initscripts/initscripts-1.0/checkroot.sh b/meta/recipes-core/initscripts/initscripts-1.0/checkroot.sh
index c879f9e519..bf6136cc42 100755
--- a/meta/recipes-core/initscripts/initscripts-1.0/checkroot.sh
+++ b/meta/recipes-core/initscripts/initscripts-1.0/checkroot.sh
@@ -74,9 +74,9 @@ test "$VERBOSE" != no && echo "Activating swap"
#
# Check the root filesystem.
#
-if test -f /fastboot || test $rootcheck = no
+if test -f /fastboot || test "$rootcheck" = no
then
- test $rootcheck = yes && echo "Fast boot, no filesystem check"
+ test "$rootcheck" = yes && echo "Fast boot, no filesystem check"
else
#
# Ensure that root is quiescent and read-only before fsck'ing.
--
2.11.0
More information about the Openembedded-core
mailing list