From b2990440f2f4040fc92740712fd4b414d20eb6df Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Thu, 17 Dec 2020 14:54:37 -0800 Subject: initscripts: use quotes for shell variable comparision Helps to execute it with busybox shell (From OE-Core rev: 42972452191b47802b460b0e6a3044d4621de6c1) Signed-off-by: Khem Raj Signed-off-by: Richard Purdie (cherry picked from commit 45ba0ca0352bca46f974d28781ac935d8e9ec3ea) Signed-off-by: Anuj Mittal Signed-off-by: Richard Purdie --- meta/recipes-core/initscripts/initscripts-1.0/checkroot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta/recipes-core') 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 -- cgit v1.2.3-54-g00ecf