[oe-commits] [openembedded-core] 07/10: initramfs-framework/setup-live: quote bootparam_root variable
git at git.openembedded.org
git at git.openembedded.org
Thu Aug 24 08:40:21 UTC 2017
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch master-next
in repository openembedded-core.
commit dcd129504ea64986652e2e5907d9badf9373e367
Author: California Sullivan <california.l.sullivan at intel.com>
AuthorDate: 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.
Signed-off-by: California Sullivan <california.l.sullivan at intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/recipes-core/initrdscripts/initramfs-framework/setup-live | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list