From 2a4335eae4b31ea9451a665dad2ba33ae4967670 Mon Sep 17 00:00:00 2001 From: Patrick Ohly Date: Fri, 18 Sep 2015 13:49:21 +0200 Subject: 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 --- meta/recipes-core/initrdscripts/initramfs-framework/init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta') 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 -- cgit v1.2.3