]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
tests: Disable sercon in SeaBIOS
authorColin Watson <cjwatson@ubuntu.com>
Mon, 30 Jul 2018 11:37:22 +0000 (12:37 +0100)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 13 Sep 2018 08:49:45 +0000 (10:49 +0200)
SeaBIOS 1.11.0 added support for VGA emulation over a serial port, which
interferes with grub-shell.  Turn it off.

Signed-off-by: Colin Watson <cjwatson@ubuntu.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
tests/util/grub-shell.in

index d690d6734efb82109f7635c4688b6fc7417a5751..93e9f5148408aaf29d580930e83e11c373a2b15b 100644 (file)
@@ -369,6 +369,13 @@ test -z "$debug" || echo "GRUB ROM directory: ${rom_directory}" >&2
 
 if test -z "$debug"; then
   qemuopts="${qemuopts} -nographic -monitor file:/dev/null"
+  # SeaBIOS 1.11.0 added support for VGA emulation over a serial port.  If
+  # this is configured in SeaBIOS, then -nographic causes some extra junk to
+  # end up on the serial console, which interferes with our tests.  This
+  # workaround unfortunately causes qemu to issue a warning 'externally
+  # provided fw_cfg item names should be prefixed with "opt/"', but there
+  # doesn't seem to be a better option.
+  qemuopts="${qemuopts} -fw_cfg name=etc/sercon-port,string=0"
 fi
 
 if [ x$boot != xnet ] && [ x$boot != xemu ]; then