mirror of
https://git.yoctoproject.org/poky
synced 2026-05-05 07:39:49 +02:00
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:
committed by
Richard Purdie
parent
5ff7e8deb6
commit
288a9ffcf2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user