[oe-commits] Patrick Ohly : initramfs-framework: fix " support dropping into shell on failure"
git at git.openembedded.org
git at git.openembedded.org
Wed Sep 23 08:56:01 UTC 2015
Module: openembedded-core.git
Branch: master
Commit: 2a4335eae4b31ea9451a665dad2ba33ae4967670
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=2a4335eae4b31ea9451a665dad2ba33ae4967670
Author: Patrick Ohly <patrick.ohly at intel.com>
Date: Fri Sep 18 13:49:21 2015 +0200
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 at intel.com>
Signed-off-by: Ross Burton <ross.burton at intel.com>
---
meta/recipes-core/initrdscripts/initramfs-framework/init | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/recipes-core/initrdscripts/initramfs-framework/init b/meta/recipes-core/initrdscripts/initramfs-framework/init
index 9291ad5..204f237 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
More information about the Openembedded-commits
mailing list