]> git.proxmox.com Git - grub2.git/commitdiff
tests: Disable sercon in SeaBIOS
authorColin Watson <cjwatson@ubuntu.com>
Mon, 30 Jul 2018 11:27:39 +0000 (12:27 +0100)
committerColin Watson <cjwatson@debian.org>
Mon, 30 Jul 2018 11:41:48 +0000 (12:41 +0100)
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>
Forwarded: https://lists.gnu.org/archive/html/grub-devel/2018-07/msg00113.html
Last-Update: 2018-07-30

Patch-Name: tests-disable-sercon-in-seabios.patch

tests/util/grub-shell.in

index 814f36c6bd2438b7f9c59f5f4a9777e95b9e38db..8270e8277dc0f7d320ae8239d3af914f70e446bd 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