AlmaLinux changes

This commit is contained in:
eabdullin 2021-11-17 16:49:45 +03:00
parent 51c17ca244
commit a4a6bbffb0
2 changed files with 35 additions and 1 deletions

29
SOURCES/314.patch Normal file
View File

@ -0,0 +1,29 @@
From 3d065682913bbfad761cc8bd87da687597b2ed13 Mon Sep 17 00:00:00 2001
From: Elkhan Mammadli <elkhan.mammadli@protonmail.com>
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 <elkhan.mammadli@protonmail.com>
---
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

View File

@ -18,7 +18,7 @@
Name: virt-manager Name: virt-manager
Version: 2.2.1 Version: 2.2.1
Release: 4%{?dist}%{?extra_release} Release: 4%{?dist}%{?extra_release}.alma
%global verrel %{version}-%{release} %global verrel %{version}-%{release}
Summary: Desktop tool for managing virtual machines via libvirt 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 Source0: https://virt-manager.org/download/sources/%{name}/%{name}-%{version}.tar.gz
Source1: symlinks 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 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 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 Patch3: virt-manager-guest-Drop-set_capabilities_defaults-call-from-get_uefi_path.patch
@ -230,6 +232,9 @@ done
%changelog %changelog
* Mon Oct 18 2021 Andrew Lukoshko <alukoshko@almalinux.org> - 2.2.1-4.alma
- Add AlmaLinux support
* Mon Nov 23 2020 Pavel Hrdina <phrdina@redhat.com> - 2.2.1-4 * Mon Nov 23 2020 Pavel Hrdina <phrdina@redhat.com> - 2.2.1-4
- virt-install: Use minutes instead of seconds on get_time_string() (rhbz#1777664) - 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) - details: Fix showing the firmware type in case of firmware auto selection (rhbz#1857069)