Skip to contentSkip to conversation

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

PATCH In review [email protected] 1 participant 3 messages Jan 8, 2013 – Jan 9, 2013

lore
Share & tools
lore
#0 lore raw

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

From: Chen Qi <[email protected]>

The following changes since commit 09359e6ec00901abfe49157f1f9730117b4d284b:

freetype: update to 2.4.11 which includes fixes for CVE-2012-{5668, 5669, 5670} (2012-12-31 09:43:27 +0000)

are available in the git repository at:

git://git.pokylinux.org/poky-contrib ChenQi/runqemu-ramfs
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=ChenQi/runqemu-ramfs

Chen Qi (1):
runqemu-internel: add 'debugshell' as a default kernel option

 scripts/runqemu-internal |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
1.7.9.5
#1 lore raw

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

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
author
#2 lore raw

Re: [PATCH 1/1] runqemu-internel: add 'debugshell' as a default kernel option

Sorry about the typo in subject.
I'll fix the typo and send out this patch again.

Chen Qi

Quoted 31 lines · On 01/08/2013 05:06 PM, [email protected] wrote:

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