tests: Only pass SeaBIOS fw_opt for x86 non-EFI platforms

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>
This commit is contained in:
Daniel Axtens 2022-04-21 15:24:13 +10:00 committed by Daniel Kiper
parent 2f4430cc0a
commit 188d2ff1c3

View File

@ -376,8 +376,12 @@ 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.
#
# 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
pkgdatadir="@builddir@" "@builddir@/grub-mkrescue" "--output=${isofile}" "--override-directory=${builddir}/grub-core" \