commit 54e705ee5eb13b341dd8c146afaf1e1f8c527888 Author: eabdullin Date: Mon Feb 3 11:23:24 2025 +0300 Add config diff --git a/config.yaml b/config.yaml new file mode 100644 index 0000000..e7a0949 --- /dev/null +++ b/config.yaml @@ -0,0 +1,15 @@ +actions: + - modify_release: + - suffix: ".alma.1" + enabled: true + + - changelog_entry: + - name: "Eduard Abdullin" + email: "eabdullin@almalinux.org" + line: + - "Add AlmaLinux support" + + - add_files: + - type: "patch" + name: "322.patch" + number: 1000 diff --git a/files/322.patch b/files/322.patch new file mode 100644 index 0000000..6d3c489 --- /dev/null +++ b/files/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"