From a4a6bbffb06cc711d6d1c95c9253762bb9b127f0 Mon Sep 17 00:00:00 2001 From: eabdullin Date: Wed, 17 Nov 2021 16:49:45 +0300 Subject: [PATCH] AlmaLinux changes --- SOURCES/314.patch | 29 +++++++++++++++++++++++++++++ SPECS/virt-manager.spec | 7 ++++++- 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 SOURCES/314.patch diff --git a/SOURCES/314.patch b/SOURCES/314.patch new file mode 100644 index 0000000..130d81a --- /dev/null +++ b/SOURCES/314.patch @@ -0,0 +1,29 @@ +From 3d065682913bbfad761cc8bd87da687597b2ed13 Mon Sep 17 00:00:00 2001 +From: Elkhan Mammadli +Date: Mon, 18 Oct 2021 05:46:33 +0400 +Subject: [PATCH] installertreemedia: Support for AlmaLinux OS 8 + +AlmaLinux OS 8 has kernel argument in its Osinfo database of +information. Considering kernel arguments are hardcoded instead of using +the libosinfo's kernel-url-argument API, which queries the Osinfo +database, this adds the required kernel argument to boot OS +successfully. + +Signed-off-by: Elkhan Mammadli +--- + virtinst/osdict.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/virtinst/osdict.py b/virtinst/osdict.py +index 1273b934b..e930275fa 100644 +--- a/virtinst/osdict.py ++++ b/virtinst/osdict.py +@@ -597,7 +597,7 @@ def get_kernel_url_arg(self): + if self.distro in ["caasp", "sle", "sled", "sles", "opensuse"]: + return "install" + +- if self.distro not in ["centos", "rhel", "fedora"]: ++ if self.distro not in ["centos", "rhel", "fedora", "almalinux"]: + return None + + # Red Hat distros diff --git a/SPECS/virt-manager.spec b/SPECS/virt-manager.spec index 79180f7..65ace91 100644 --- a/SPECS/virt-manager.spec +++ b/SPECS/virt-manager.spec @@ -18,7 +18,7 @@ Name: virt-manager Version: 2.2.1 -Release: 4%{?dist}%{?extra_release} +Release: 4%{?dist}%{?extra_release}.alma %global verrel %{version}-%{release} Summary: Desktop tool for managing virtual machines via libvirt @@ -28,6 +28,8 @@ URL: https://virt-manager.org/ Source0: https://virt-manager.org/download/sources/%{name}/%{name}-%{version}.tar.gz Source1: symlinks +# AlmaLinux support patch from https://github.com/virt-manager/virt-manager/pull/314 +Patch0: 314.patch Patch1: virt-manager-guest-fix-warning-message-when-machine-type-is-changed-for-secure-boot.patch Patch2: virt-manager-man-virt-install-Fix-a-couple-of-launchSecurity-related-typos.patch Patch3: virt-manager-guest-Drop-set_capabilities_defaults-call-from-get_uefi_path.patch @@ -230,6 +232,9 @@ done %changelog +* Mon Oct 18 2021 Andrew Lukoshko - 2.2.1-4.alma +- Add AlmaLinux support + * Mon Nov 23 2020 Pavel Hrdina - 2.2.1-4 - virt-install: Use minutes instead of seconds on get_time_string() (rhbz#1777664) - details: Fix showing the firmware type in case of firmware auto selection (rhbz#1857069)