From: Patrick Ohly Date: Fri, 18 Sep 2015 11:49:21 +0000 (+0200) Subject: initramfs-framework: fix "support dropping into shell on failure" X-Git-Tag: 2015-10~366 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=2a4335eae4b31ea9451a665dad2ba33ae4967670;p=openembedded-core.git initramfs-framework: fix "support dropping into shell on failure" Due to a missing $ before the variable name, all fatal errors ended up invoking a shell, instead of only doing that when init_fatal_sh is set as boot parameter. Signed-off-by: Patrick Ohly Signed-off-by: Ross Burton --- diff --git a/meta/recipes-core/initrdscripts/initramfs-framework/init b/meta/recipes-core/initrdscripts/initramfs-framework/init index 9291ad5c21..204f2379a5 100755 --- a/meta/recipes-core/initrdscripts/initramfs-framework/init +++ b/meta/recipes-core/initrdscripts/initramfs-framework/init @@ -58,7 +58,7 @@ fatal() { echo $1 >/dev/console echo >/dev/console - if [ -n "bootparam_init_fatal_sh" ]; then + if [ -n "$bootparam_init_fatal_sh" ]; then sh else while [ "true" ]; do