[PATCH 2/3] rpm: disable default firmware list on RHEL and Fedora >= 31

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



RHEL 7 & 8 and Fedora >= 31 are expected to ship firmware metdata files
alongside any firmware binaries used for QEMU. As such we should disable
the built-in paths for the nvram config variable in libvirt. At best
they are duplicating information libvirt can already get from the
metadata files; at worst they are simply wrong.

Signed-off-by: Daniel P. Berrangé <berrange@xxxxxxxxxx>
---
 libvirt.spec.in | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/libvirt.spec.in b/libvirt.spec.in
index 18f0a0e217..a15160f211 100644
--- a/libvirt.spec.in
+++ b/libvirt.spec.in
@@ -1130,7 +1130,7 @@ exit 1
 
 %define arg_selinux_mount --with-selinux-mount="/sys/fs/selinux"
 
-%if 0%{?fedora}
+%if 0%{?fedora} && 0%{?fedora} < 31
     # Nightly edk2.git-ovmf-x64
     LOADERS="/usr/share/edk2.git/ovmf-x64/OVMF_CODE-pure-efi.fd:/usr/share/edk2.git/ovmf-x64/OVMF_VARS-pure-efi.fd"
     # Nightly edk2.git-ovmf-ia32
@@ -1149,6 +1149,10 @@ exit 1
     # Fedora edk2-arm
     LOADERS="$LOADERS:/usr/share/edk2/arm/QEMU_EFI-pflash.raw:/usr/share/edk2/arm/vars-template-pflash.raw"
     %define arg_loader_nvram --with-loader-nvram="$LOADERS"
+%else
+    # These distros use QEMU firmware metadata files, so
+    # disable libvirts built-in default nvram list
+    %define arg_loader_nvram --without-loader-nvram
 %endif
 
 # place macros above and build commands below this comment
-- 
2.20.1

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux