Patchwork [CONSOLIDATED,PULL,15/19] scripts/runqemu: add support to pass bootparams to kernel

login
register
mail settings
Submitter Saul Wold
Date Aug. 22, 2011, 9:52 p.m.
Message ID <3cddbcbae90319cc5bb0dada51322b5ea96ccdcf.1314043945.git.sgw@linux.intel.com>
Download mbox | patch
Permalink /patch/10429/
State New, archived
Headers show

Comments

Saul Wold - Aug. 22, 2011, 9:52 p.m.
From: Otavio Salvador <otavio@ossystems.com.br>

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---
 scripts/runqemu |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

Patch

diff --git a/scripts/runqemu b/scripts/runqemu
index ed8c05b..91c3c9e 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -135,6 +135,9 @@  while [ $i -le $# ]; do
             SCRIPT_QEMU_OPT="$SCRIPT_QEMU_OPT -serial stdio"
             SCRIPT_KERNEL_OPT="$SCRIPT_KERNEL_OPT console=ttyS0"
             ;;
+        "bootparams="*)
+            SCRIPT_KERNEL_OPT="$SCRIPT_KERNEL_OPT ${arg##bootparams=}"
+            ;;
         "audio")
             if [[ "x$MACHINE" == "xqemux86" || "x$MACHINE" == "xqemux86-64" ]]; then
                 echo "Enable audio on qemu. Pls. install snd_intel8x0 or snd_ens1370 driver in linux guest.";