[oe-commits] Patrick Ohly : initramfs-framework: fix " support dropping into shell on failure"
git at git.openembedded.org
git at git.openembedded.org
Mon Sep 21 14:33:45 UTC 2015
Module: openembedded-core.git
Branch: master-next
Commit: f837a6b33644ee3df32d75a6e43a106f3ae431a3
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=f837a6b33644ee3df32d75a6e43a106f3ae431a3
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