]> code.ossystems Code Review - openembedded-core.git/commitdiff
initramfs-framework/setup-live: quote bootparam_root variable
authorCalifornia Sullivan <california.l.sullivan@intel.com>
Wed, 23 Aug 2017 22:47:28 +0000 (15:47 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 24 Aug 2017 08:35:16 +0000 (09:35 +0100)
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 <california.l.sullivan@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/initrdscripts/initramfs-framework/setup-live

index b98a321b89a845c61c842ae8fd50660a578c68f5..4c79f412857c71d119770fcb07f9e469a5f6bf41 100644 (file)
@@ -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