From: Khem Raj Date: Thu, 17 Dec 2020 22:54:37 +0000 (-0800) Subject: initscripts: use quotes for shell variable comparision X-Git-Tag: 2020-04.5-dunfell~24 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=4e7338614f9c02a0a846645a51a78ddb69253f60;p=openembedded-core.git initscripts: use quotes for shell variable comparision Helps to execute it with busybox shell Signed-off-by: Khem Raj Signed-off-by: Richard Purdie (cherry picked from commit 45ba0ca0352bca46f974d28781ac935d8e9ec3ea) Signed-off-by: Steve Sakoman --- diff --git a/meta/recipes-core/initscripts/initscripts-1.0/checkroot.sh b/meta/recipes-core/initscripts/initscripts-1.0/checkroot.sh index 02f0351fcb..a63e71b780 100755 --- a/meta/recipes-core/initscripts/initscripts-1.0/checkroot.sh +++ b/meta/recipes-core/initscripts/initscripts-1.0/checkroot.sh @@ -74,7 +74,7 @@ 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" else