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.

(From OE-Core rev: 2a4335eae4b31ea9451a665dad2ba33ae4967670)

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Patrick Ohly
2015-09-18 13:49:21 +02:00
committed by Richard Purdie
parent 5ff7e8deb6
commit 288a9ffcf2

View File

@@ -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