aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCalifornia Sullivan <california.l.sullivan@intel.com>2017-08-23 15:47:28 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-08-24 09:35:16 +0100
commitdcd129504ea64986652e2e5907d9badf9373e367 (patch)
tree8f78e4b5dbe28e9e74bf9f31ac77e24d5aed751b
parentbdddd81c8b4eab6bbf7a8697992b48cb5a30ae4a (diff)
downloadopenembedded-core-contrib-dcd129504ea64986652e2e5907d9badf9373e367.tar.gz
openembedded-core-contrib-dcd129504ea64986652e2e5907d9badf9373e367.tar.bz2
openembedded-core-contrib-dcd129504ea64986652e2e5907d9badf9373e367.zip
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 <california.l.sullivan@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-core/initrdscripts/initramfs-framework/setup-live2
1 files changed, 1 insertions, 1 deletions
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