]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
tests: Fix firmware-auto-efi-loader-path-nonstandard
authorAndrea Bolognani <abologna@redhat.com>
Thu, 16 Mar 2023 17:59:52 +0000 (18:59 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Wed, 22 Mar 2023 12:49:53 +0000 (13:49 +0100)
This test is intended to simulate the use of an OVMF firmware
image installed under a non-standard path. In order to make
such a configuration work, the user would have to provide
additional information.

Right now it doesn't matter, because the configuration is
rejected anyway, but the behavior is going to change slightly
in the future. Prepare by making the configuration more
complete and realistic.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
tests/qemuxml2argvdata/firmware-auto-efi-loader-path-nonstandard.x86_64-latest.err
tests/qemuxml2argvdata/firmware-auto-efi-loader-path-nonstandard.xml

index e551fafd03e82709b53f97dc59a61ec17d99629b..3f90a88791da755d337cd5f51bc2d6a3aada603b 100644 (file)
@@ -1 +1 @@
-loader attribute 'type' cannot be specified when firmware autoselection is enabled
+loader attribute 'readonly' cannot be specified when firmware autoselection is enabled
index 5cf67730fd6ba5fd91f532bccfebcd5eaf7cd401..daec5989d51f7d262d606a0585433948e38c0a28 100644 (file)
@@ -5,7 +5,7 @@
   <vcpu placement='static'>1</vcpu>
   <os firmware='efi'>
     <type arch='x86_64' machine='pc-q35-4.0'>hvm</type>
-    <loader>/path/to/OVMF_CODE.fd</loader>
+    <loader readonly='yes' type='pflash'>/path/to/OVMF_CODE.fd</loader>
   </os>
   <features>
     <acpi/>