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

login
register
mail settings
Submitter Qi.Chen@windriver.com
Date Jan. 8, 2013, 9:06 a.m.
Message ID <239f0850af3e3f0ed83263e4306420f4f0684088.1357615514.git.Qi.Chen@windriver.com>
Download mbox | patch
Permalink /patch/42291/
State New
Headers show

Comments

Qi.Chen@windriver.com - Jan. 8, 2013, 9:06 a.m.
From: Chen Qi <Qi.Chen@windriver.com>

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>
---
 scripts/runqemu-internal |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Qi.Chen@windriver.com - Jan. 9, 2013, 2:27 a.m.
Sorry about the typo in subject.
I'll fix the typo and send out this patch again.

Chen Qi

On 01/08/2013 05:06 PM, Qi.Chen@windriver.com wrote:
> From: Chen Qi <Qi.Chen@windriver.com>
>
> 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>
> ---
>   scripts/runqemu-internal |    2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> 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

Patch

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