[OE-core] [PATCH 3/9] initramfs-framework: modify the fatal behaviour in init

Chen Qi Qi.Chen at windriver.com
Mon Jun 16 10:46:25 UTC 2014


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 at windriver.com>
---
 .../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 95fa9fb..1e3c14c 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
-- 
1.7.9.5




More information about the Openembedded-core mailing list