From: Benjamin Drung Date: Sat, 24 Jan 2026 16:53:50 +0000 (+0100) Subject: refactor(run-qemu): group serial and log file handling X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3fa369b75b7abad38cbac34e01e1b3590fe45fa3;p=thirdparty%2Fdracut-ng.git refactor(run-qemu): group serial and log file handling Configuring `-serial` to write to `stdout` and writing to the a QEMU log file belongs together. --- diff --git a/test/run-qemu b/test/run-qemu index f6ef16b4c..8bfd86c73 100755 --- a/test/run-qemu +++ b/test/run-qemu @@ -174,10 +174,6 @@ fi # Provide rng device sourcing the hosts /dev/urandom and other standard parameters ARGS+=(-smp 2 -m "${MEMORY-1024}" -nodefaults -vga none -display none -no-reboot -watchdog-action poweroff -device "${rng_device:-virtio-rng-pci}") -if ! [[ $* == *-daemonize* ]]; then - ARGS+=(-serial stdio) -fi - # virtual hardware watchdog not available on s390x if [[ $ARCH != "s390x" ]]; then ARGS+=(-device i6300esb) @@ -201,6 +197,7 @@ if ! [[ $* == *-daemonize* ]] && timeout --help 2> /dev/null | grep -q -- --fore fi if ! [[ $* == *-daemonize* ]]; then + ARGS+=(-serial stdio) if [[ ${QEMU_LOGFILE-} ]]; then exec > >(tee "$QEMU_LOGFILE") fi