aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/runqemu-internal
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2013-01-09 10:31:57 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-01-09 12:40:11 +0000
commit0ffdfabc5ab5f6303aff11f8ea511875f1eaf0f5 (patch)
tree78a0e12010f9b5e831bae8f427f170a12213b1e4 /scripts/runqemu-internal
parent600c07c4391dc44638e9c920c3c402b6588d1259 (diff)
downloadopenembedded-core-contrib-0ffdfabc5ab5f6303aff11f8ea511875f1eaf0f5.tar.gz
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@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/runqemu-internal')
-rwxr-xr-xscripts/runqemu-internal2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal
index a11220dd50..9d570ed9c6 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