]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
tests: Only pass SeaBIOS fw_opt for x86 non-EFI platforms
authorDaniel Axtens <dja@axtens.net>
Thu, 21 Apr 2022 05:24:13 +0000 (15:24 +1000)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 28 Jun 2022 15:21:07 +0000 (17:21 +0200)
This breaks the tests on pseries - just restrict it to x86 platforms
that don't specify an EFI.

Signed-off-by: Daniel Axtens <dja@axtens.net>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
tests/util/grub-shell.in

index 33590baeb13c052abd852b623bb4ec3d35842ba8..4828afb7cc5acd3a442fdfba6c5bc21e615daf17 100644 (file)
@@ -376,7 +376,11 @@ if test -z "$debug"; then
   # 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"
+  #
+  # SeaBIOS is used for i386, except on EFI.
+  if [ ${grub_modinfo_target_cpu} == 'i386' ] && [ ${grub_modinfo_platform} != 'efi' ]; then
+    qemuopts="${qemuopts} -fw_cfg name=etc/sercon-port,string=0"
+  fi
 fi
 
 if [ x$boot != xnet ] && [ x$boot != xemu ]; then