summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2014-05-21 03:59:42 -0400
committerChen Qi <Qi.Chen@windriver.com>2014-06-16 18:35:46 +0800
commit36c954849cf9e9c0c4885b3b300ae23ba883ad72 (patch)
treed3e8643f7d1d9613e69afbd711dfaa0a6e889486
parent833f07c28e0b62532ff428f5f60f37d3ef34fa54 (diff)
downloadopenembedded-core-contrib-36c954849cf9e9c0c4885b3b300ae23ba883ad72.tar.gz
openembedded-core-contrib-36c954849cf9e9c0c4885b3b300ae23ba883ad72.tar.bz2
openembedded-core-contrib-36c954849cf9e9c0c4885b3b300ae23ba883ad72.zip
initramfs-framework: modify the fatal behaviour in init
When a fatal error occurs, we'd better drop into a shell instead of having it sleep for 3600 seconds. Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
-rwxr-xr-xmeta/recipes-core/initrdscripts/initramfs-framework/init5
1 files changed, 1 insertions, 4 deletions
diff --git a/meta/recipes-core/initrdscripts/initramfs-framework/init b/meta/recipes-core/initrdscripts/initramfs-framework/init
index 95fa9fb1a0..1e3c14ca1a 100755
--- a/meta/recipes-core/initrdscripts/initramfs-framework/init
+++ b/meta/recipes-core/initrdscripts/initramfs-framework/init
@@ -56,10 +56,7 @@ debug() {
fatal() {
echo $1 >/dev/console
echo >/dev/console
-
- while [ "true" ]; do
- sleep 3600
- done
+ exec sh
}
# Variables shared amoung modules