]> code.ossystems Code Review - openembedded-core.git/commitdiff
initramfs-framework: fix "support dropping into shell on failure"
authorPatrick Ohly <patrick.ohly@intel.com>
Fri, 18 Sep 2015 11:49:21 +0000 (13:49 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 21 Sep 2015 14:39:31 +0000 (15:39 +0100)
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 <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-core/initrdscripts/initramfs-framework/init

index 9291ad5c219299ffd84ffada3b2ce064ad3e10a9..204f2379a5a05c933346ca84eb59a0abbf2774f0 100755 (executable)
@@ -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