#2 qemu: Update QEMU binary & its location
Merged 3 years ago by etrunko. Opened 3 years ago by fidencio.
rpms/ fidencio/kata-containers wip/correct-qemu-dependency-for-non-x86_64  into  rawhide

qemu: Update QEMU binary & its location
Fabiano Fidêncio • 3 years ago  
file modified
+2 -1
@@ -171,10 +171,11 @@ 

  # The machine type uses a modern default

  # The kernel parameters workaround an issue with cgroupsv2 after kernel 5.3

  # To-do: add BUILDFLAGS=gobuildflags when the macro becomes available

- %global qemu qemu-kvm

  %if 0%{?fedora}

+ %global qemu qemu-system-%{_arch}

  %global qemupath %{_bindir}/%{qemu}

  %else

+ %global qemu qemu-kiwi

  %global qemupath %{_libexecdir}/%{qemu}

  %endif

  

Let's update the QEMU binary used for Fedora & others and, consequently,
also update their location.

For Fedora we rely on the qemu-system-$arch rather than on qemu-kvm, and
the correct binary will be installed by the qemu-kvm-core package.

For others, we depend on the qemu-kiwi binary.

Signed-off-by: Fabiano Fidêncio fidencio@redhat.com

This PR should be backported to Fedora 34 and Fedora 33.

Pull-Request has been merged by etrunko

3 years ago
Metadata