From: Chen Qi Date: Wed, 21 May 2014 07:59:42 +0000 (-0400) Subject: initramfs-framework: modify the fatal behaviour in init X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36c954849cf9e9c0c4885b3b300ae23ba883ad72;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 --- diff --git a/meta/recipes-core/initrdscripts/initramfs-framework/init b/meta/recipes-core/initrdscripts/initramfs-framework/init index 95fa9fb1a03..1e3c14ca1ad 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