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: lucaceresoli/bug-15201-perf-libtraceevent-missing~28879 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a4335eae4b31ea9451a665dad2ba33ae4967670;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.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 9291ad5c219..204f2379a5a 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