aboutsummaryrefslogtreecommitdiffstats
path: root/meta
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-21 15:39:31 +0100
commit2a4335eae4b31ea9451a665dad2ba33ae4967670 (patch)
tree72fbfd160e393af0bbc6ff3563d8f5eb4dad0835 /meta
parent598c9660f26018a748a4749377389ced7eab2229 (diff)
downloadopenembedded-core-contrib-2a4335eae4b31ea9451a665dad2ba33ae4967670.tar.gz
openembedded-core-contrib-2a4335eae4b31ea9451a665dad2ba33ae4967670.tar.bz2
openembedded-core-contrib-2a4335eae4b31ea9451a665dad2ba33ae4967670.zip
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 <patrick.ohly@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta')
-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() {
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