diff options
author | California Sullivan <california.l.sullivan@intel.com> | 2017-08-23 15:47:28 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-08-24 13:48:10 +0100 |
commit | 26b6995f615fa787c1b01386daf1049585ca006f (patch) | |
tree | 2d76710f9e146fddce110e277013a41bfbe57120 /meta/recipes-core/initrdscripts/initramfs-framework | |
parent | e837d74df656cd56c194b60724d0e58deb936e81 (diff) | |
download | poky-26b6995f615fa787c1b01386daf1049585ca006f.tar.gz |
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>
Diffstat (limited to 'meta/recipes-core/initrdscripts/initramfs-framework')
-rw-r--r-- | meta/recipes-core/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 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="" | |||
12 | ROOT_DISK="" | 12 | ROOT_DISK="" |
13 | shelltimeout=30 | 13 | shelltimeout=30 |
14 | 14 | ||
15 | if [ -z $bootparam_root -o $bootparam_root = "/dev/ram0" ]; then | 15 | if [ -z "$bootparam_root" -o "$bootparam_root" = "/dev/ram0" ]; then |
16 | echo "Waiting for removable media..." | 16 | echo "Waiting for removable media..." |
17 | C=0 | 17 | C=0 |
18 | while true | 18 | while true |