summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/initrdscripts
diff options
context:
space:
mode:
authorPatrick Ohly <patrick.ohly@intel.com>2015-09-18 13:49:21 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-23 09:52:58 +0100
commit288a9ffcf2b4b3d5e0c5d87f84b6378494191318 (patch)
tree721083c5471f0d593eee569d33caec2372953132 /meta/recipes-core/initrdscripts
parent5ff7e8deb6eb8870cd71f95dad2de9f2193da168 (diff)
downloadpoky-288a9ffcf2b4b3d5e0c5d87f84b6378494191318.tar.gz
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>
Diffstat (limited to 'meta/recipes-core/initrdscripts')
-rwxr-xr-xmeta/recipes-core/initrdscripts/initramfs-framework/init2
1 files changed, 1 insertions, 1 deletions
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() {
58 echo $1 >/dev/console 58 echo $1 >/dev/console
59 echo >/dev/console 59 echo >/dev/console
60 60
61 if [ -n "bootparam_init_fatal_sh" ]; then 61 if [ -n "$bootparam_init_fatal_sh" ]; then
62 sh 62 sh
63 else 63 else
64 while [ "true" ]; do 64 while [ "true" ]; do