[gnome-continuous-yocto/gnomeostree-3.28-rocko: 7387/8267] initramfs-framework/setup-live: quote bootparam_root variable



commit 26b6995f615fa787c1b01386daf1049585ca006f
Author: California Sullivan <california l sullivan intel com>
Date:   Wed Aug 23 15:47:28 2017 -0700

    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.
    
    (From OE-Core rev: dcd129504ea64986652e2e5907d9badf9373e367)
    
    Signed-off-by: California Sullivan <california l sullivan intel com>
    Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>

 .../initrdscripts/initramfs-framework/setup-live   |    2 +-
 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 b98a321..4c79f41 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]