From: California Sullivan Date: Wed, 23 Aug 2017 22:47:28 +0000 (-0700) Subject: initramfs-framework/setup-live: quote bootparam_root variable X-Git-Tag: 2017-10~453 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=dcd129504ea64986652e2e5907d9badf9373e367;p=openembedded-core.git initramfs-framework/setup-live: quote bootparam_root variable When bootparam_root was empty the if statement would resolve into invalid syntax instead of short circuiting after the -z, causing a boot failure. Signed-off-by: California Sullivan Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-core/initrdscripts/initramfs-framework/setup-live b/meta/recipes-core/initrdscripts/initramfs-framework/setup-live index b98a321b89..4c79f41285 100644 --- a/meta/recipes-core/initrdscripts/initramfs-framework/setup-live +++ b/meta/recipes-core/initrdscripts/initramfs-framework/setup-live @@ -12,7 +12,7 @@ ISOLINUX="" ROOT_DISK="" shelltimeout=30 - if [ -z $bootparam_root -o $bootparam_root = "/dev/ram0" ]; then + if [ -z "$bootparam_root" -o "$bootparam_root" = "/dev/ram0" ]; then echo "Waiting for removable media..." C=0 while true