Skip to contentSkip to conversation

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

PATCH New [email protected] 1 participant 1 message Jan 9, 2013 1 message not in the archive

lore
Share & tools
lore
#1 lore raw

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

In reply to a message not in the archive

From: Chen Qi <[email protected]>

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).

---
 scripts/runqemu-internal |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/runqemu-internal +1 -1
index a11220d..9d570ed 100755
@@ -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
Signature · 1 line
1.7.9.5