From 09aad953b71617f32ff80317f6983b93700bafb1 Mon Sep 17 00:00:00 2001 From: eabdullin Date: Fri, 13 Sep 2024 09:27:05 +0300 Subject: [PATCH] Add x86_64_v2 support --- .gitignore | 1 + 0001-Add-x86_64_v2-support.patch | 23 +++++++++++++++++++++++ lorax.spec | 8 +++++++- 3 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 0001-Add-x86_64_v2-support.patch diff --git a/.gitignore b/.gitignore index b9cc31e..6e2304d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +lorax-40.5.7 /lorax-19.0.tar.gz /lorax-19.1.tar.gz /lorax-19.2.tar.gz diff --git a/0001-Add-x86_64_v2-support.patch b/0001-Add-x86_64_v2-support.patch new file mode 100644 index 0000000..4782bf2 --- /dev/null +++ b/0001-Add-x86_64_v2-support.patch @@ -0,0 +1,23 @@ +From ac5808bd2045da5fd0af937fb84755d75e155a92 Mon Sep 17 00:00:00 2001 +From: soksanichenko +Date: Fri, 13 Sep 2024 09:24:59 +0300 +Subject: [PATCH] Add x86_64_v2 support + +--- + src/pylorax/treebuilder.py | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/pylorax/treebuilder.py b/src/pylorax/treebuilder.py +index 2c6b5d8..47f8747 100644 +--- a/src/pylorax/treebuilder.py ++++ b/src/pylorax/treebuilder.py +@@ -36,6 +36,7 @@ from pylorax.executils import runcmd, runcmd_output, execWithCapture + + templatemap = { + 'x86_64': 'x86.tmpl', ++ 'x86_64_v2': 'x86_v2.tmpl', + 'ppc64le': 'ppc64le.tmpl', + 's390x': 's390.tmpl', + 'aarch64': 'aarch64.tmpl', +-- +2.39.3 (Apple Git-146) diff --git a/lorax.spec b/lorax.spec index 498e015..44282e2 100644 --- a/lorax.spec +++ b/lorax.spec @@ -4,7 +4,7 @@ Name: lorax Version: 40.5.7 -Release: 1%{?dist} +Release: 1%{?dist}.alma.1 Summary: Tool for creating the anaconda install images License: GPL-2.0-or-later @@ -15,6 +15,9 @@ URL: https://github.com/weldr/lorax # tito build --tgz Source0: %{name}-%{version}.tar.gz +# AlmaLinux patches +Patch1000: 0001-Add-x86_64_v2-support.patch + BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: make @@ -182,6 +185,9 @@ make DESTDIR=$RPM_BUILD_ROOT mandir=%{_mandir} install %{_datadir}/lorax/templates.d/* %changelog +* Fri Sep 13 2024 Eduard Abdullin 40.5.7-1.alma.1 +- Add x86_64_v2 support + * Tue Sep 10 2024 Brian C. Lane 40.5.7-1 - templates: Sync template changes from lorax-templates-rhel (bcl) Resolves: RHEL-54713