[oe-commits] Chen Qi : runqemu-internal: add 'debugshell' as a default kernel option

git at git.openembedded.org git at git.openembedded.org
Wed Jan 9 15:17:30 UTC 2013


Module: openembedded-core.git
Branch: master
Commit: 0ffdfabc5ab5f6303aff11f8ea511875f1eaf0f5
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=0ffdfabc5ab5f6303aff11f8ea511875f1eaf0f5

Author: Chen Qi <Qi.Chen at windriver.com>
Date:   Wed Jan  9 10:31:57 2013 +0800

runqemu-internal: add 'debugshell' as a default kernel option

Add 'debugshell' as a default kernel option for ramfs booting.

If rootfs.img cannot be found under /media, init-live.sh loops
forever without showing any information. Silently looping forever
and blocking users is inappropriate.

Now that the 'debugshell' feature has been implemented in init-live.sh,
It's reasonable to add it to the kernel option when booting a ramfs-based
image. In this way, the system doesn't loop forever and instead drops
to a shell after a default timeout (30 seconds).

Signed-off-by: Chen Qi <Qi.Chen at windriver.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 scripts/runqemu-internal |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal
index a11220d..9d570ed 100755
--- a/scripts/runqemu-internal
+++ b/scripts/runqemu-internal
@@ -472,7 +472,7 @@ fi
 
 if [ "x$RAMFS" = "xtrue" ]; then
     QEMUOPTIONS="-initrd $ROOTFS -nographic"
-    KERNCMDLINE="root=/dev/ram0"
+    KERNCMDLINE="root=/dev/ram0 debugshell"
 fi
 
 if [ "x$QEMUOPTIONS" = "x" ]; then





More information about the Openembedded-commits mailing list