runqemu: add a seriallog option
PATCH 1/1 runqemu: add a seriallog option
Similar to serial, but this will write everything that is output on the console to the specified file.
Signed-off-by Ross Burton <[email protected]>
--- scripts/runqemu | 6 ++++++ 1 file changed, 6 insertions(+)
scripts/runqemu +6 -0
@@ -32,6 +32,7 @@ usage() { echo " Simplified QEMU command-line options can be passed with:" echo " nographic - disables video console" echo " serial - enables a serial console on /dev/ttyS0" + echo " seriallog=/path/to/output - writes the console output to this file" echo " kvm - enables KVM when running qemux86/qemux86-64 (VT-capable CPU required)" echo " publicvnc - enable a VNC server open to all hosts" echo " qemuparams=\"xyz\" - specify custom parameters to QEMU"
@@ -148,6 +149,11 @@ while true; do SCRIPT_KERNEL_OPT="$SCRIPT_KERNEL_OPT console=ttyS0" SERIALSTDIO="1" ;; + "seriallog="*) + SCRIPT_QEMU_OPT="$SCRIPT_QEMU_OPT -serial file:${arg##seriallog=}" + SCRIPT_KERNEL_OPT="$SCRIPT_KERNEL_OPT console=ttyS0 console=tty" + SERIALSTDIO="1" + ;; "qemuparams="*) SCRIPT_QEMU_EXTRA_OPT="${arg##qemuparams=}"
Signature · 1 line
1.7.10.4