From 36c954849cf9e9c0c4885b3b300ae23ba883ad72 Mon Sep 17 00:00:00 2001 From: Chen Qi Date: Wed, 21 May 2014 03:59:42 -0400 Subject: 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 --- meta/recipes-core/initrdscripts/initramfs-framework/init | 5 +---- 1 file changed, 1 insertion(+), 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 -- cgit 1.2.3-korg