summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/initrdscripts
diff options
context:
space:
mode:
authorPatrick Ohly <patrick.ohly@intel.com>2015-09-07 13:16:38 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-12 22:48:43 +0100
commit08ec92a04e074afe6eb326e4d5532ddcee2183a6 (patch)
tree2f8c5eb4f25b0617e22229b496efc477d6251307 /meta/recipes-core/initrdscripts
parent04f4ef97660f2a3e9951019e929cb84149644037 (diff)
downloadpoky-08ec92a04e074afe6eb326e4d5532ddcee2183a6.tar.gz
initramfs-framework: support dropping into shell on failure
When the init_fatal_sh boot parameter is present (i.e. used without value) and a fatal problem occurs inside the initramfs-module, a shell will be started instead of looping forever. Useful for debugging. Interestingly enough, the code was already indented to support such an if check... (From OE-Core rev: 1d3dc681e809846dba7cae4f81566045a3f8c205) 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/init4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/recipes-core/initrdscripts/initramfs-framework/init b/meta/recipes-core/initrdscripts/initramfs-framework/init
index e8f4713b52..9291ad5c21 100755
--- a/meta/recipes-core/initrdscripts/initramfs-framework/init
+++ b/meta/recipes-core/initrdscripts/initramfs-framework/init
@@ -58,9 +58,13 @@ 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
62 sh
63 else
61 while [ "true" ]; do 64 while [ "true" ]; do
62 sleep 3600 65 sleep 3600
63 done 66 done
67 fi
64} 68}
65 69
66# Variables shared amoung modules 70# Variables shared amoung modules