From 811ee55238fb13fd132f18db1d45b72865b482c4 Mon Sep 17 00:00:00 2001 From: eabdullin Date: Wed, 18 May 2022 14:12:32 +0300 Subject: [PATCH] AlmaLinux changes --- SOURCES/322.patch | 31 +++++++++++++++++++++++++++++++ SPECS/virt-manager.spec | 8 +++++++- 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 SOURCES/322.patch diff --git a/SOURCES/322.patch b/SOURCES/322.patch new file mode 100644 index 0000000..6d3c489 --- /dev/null +++ b/SOURCES/322.patch @@ -0,0 +1,31 @@ +From d6affa0209c727e0cd60b0700351f3f7c78c375e Mon Sep 17 00:00:00 2001 +From: Pino Toscano +Date: Mon, 1 Nov 2021 15:06:04 +0100 +Subject: [PATCH] osinfo: use the OS kernel-url-argument if available + +Each OS may specify which kernel argument is needed to specify the +installation source; use it as primary source, falling back to the +current logic. This should help supporting new OSes OOTB. + +Signed-off-by: Pino Toscano +--- + virtinst/osdict.py | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/virtinst/osdict.py b/virtinst/osdict.py +index 1273b934b..3e9cf6dd7 100644 +--- a/virtinst/osdict.py ++++ b/virtinst/osdict.py +@@ -593,6 +593,12 @@ def get_kernel_url_arg(self): + Kernel argument name the distro's installer uses to reference + a network source, possibly bypassing some installer prompts + """ ++ # Let's ask the OS for its kernel argument for the source ++ if hasattr(self._os, "get_kernel_url_argument"): ++ osarg = self._os.get_kernel_url_argument() ++ if osarg is not None: ++ return osarg ++ + # SUSE distros + if self.distro in ["caasp", "sle", "sled", "sles", "opensuse"]: + return "install" diff --git a/SPECS/virt-manager.spec b/SPECS/virt-manager.spec index ebef992..bd0591d 100644 --- a/SPECS/virt-manager.spec +++ b/SPECS/virt-manager.spec @@ -8,7 +8,7 @@ Name: virt-manager Version: 3.2.0 -Release: 14%{?dist}%{?extra_release} +Release: 14%{?dist}%{?extra_release}.alma %global verrel %{version}-%{release} Summary: Desktop tool for managing virtual machines via libvirt @@ -36,6 +36,9 @@ Patch15: virt-manager-cli-filesystem-add-binary.sandbox.mode-and-source.socket.p Patch16: virt-manager-nodedev-Improve-error-with-unknown-address-strings.patch Patch17: virt-manager-man-fix-default-value-for-filesystem-accessmode-option.patch +# AlmaLinux support patch +Patch1000: 322.patch + Requires: virt-manager-common = %{verrel} Requires: python3-gobject @@ -192,6 +195,9 @@ done %changelog +* Wed May 18 2022 Eduard Abdullin - 3.2.0-14.alma +- Add AlmaLinux support + * Wed Feb 9 2022 Jonathon Jongsma - 3.2.0-14 - man: fix default value for filesystem accessmode option (rhbz#2045932)