Backport PR #1332 to handle renamed iwl firmware packages

This commit is contained in:
Adam Williamson 2023-07-04 12:31:16 -07:00
parent a05a5b0c89
commit 516d709e14
2 changed files with 65 additions and 1 deletions

View File

@ -0,0 +1,57 @@
From b0e04f47313eeb276ac57db6e769799cea25cc0b Mon Sep 17 00:00:00 2001
From: Adam Williamson <awilliam@redhat.com>
Date: Tue, 4 Jul 2023 08:45:03 -0700
Subject: [PATCH] runtime-install: exclude renamed iwl firmware packages
@pbrobinson renamed the Intel wireless firmware packages in
the 20230625 build of linux-firmware. This causes installer
image builds to fail because they want to pull in the old packages
from the release repo because they fall in the "*-firmware" glob,
but those packages are now obsoleted by the newer ones from
updates/updates-testing, and dnf doesn't like that. This should
resolve the problem by specifically excluding all the renamed
packages from the glob. Of course, this change must go along
with the newer linux-firmware package, or else you'll get an
image that's missing a lot of wireless firmware.
Signed-off-by: Adam Williamson <awilliam@redhat.com>
---
share/templates.d/99-generic/runtime-install.tmpl | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/share/templates.d/99-generic/runtime-install.tmpl b/share/templates.d/99-generic/runtime-install.tmpl
index f8f988b8..15177467 100644
--- a/share/templates.d/99-generic/runtime-install.tmpl
+++ b/share/templates.d/99-generic/runtime-install.tmpl
@@ -28,6 +28,10 @@ installpkg grubby
## https://bugzilla.redhat.com/show_bug.cgi?id=2011615
## bfa-firmware contains only obsolete files - see
## https://bugzilla.redhat.com/show_bug.cgi?id=2152202
+ ## various iwl package names were changed in linux-firmware-20230625-151
+ ## so need to be excluded or else dnf gets sad - see
+ ## https://pagure.io/releng/issue/11511 . These exclusions can
+ ## be dropped after F38 goes EOL
installpkg --optional *-firmware --except alsa* --except midisport-firmware \
--except crystalhd-firmware --except ivtv-firmware \
--except cx18-firmware --except iscan-firmware \
@@ -36,7 +40,16 @@ installpkg grubby
--except liquidio-firmware --except netronome-firmware \
--except mrvlprestera-firmware --except mlxsw_spectrum-firmware \
--except hackrf-firmware --except python-virt-firmware \
- --except python3-virt-firmware
+ --except python3-virt-firmware \
+ --except iwl3945-firmware --except iwl4965-firmware \
+ --except iwl100-firmware --except iwl105-firmware \
+ --except iwl135-firmware --except iwl1000-firmware \
+ --except iwl2000-firmware --except iwl2030-firmware \
+ --except iwl5000-firmware --except iwl5150-firmware \
+ --except iwl6000-firmware --except iwl6000g2a-firmware \
+ --except iwl6000g2b-firmware --except iwl6050-firmware \
+ --except iwl3160-firmware --except iwl7260-firmware \
+ --except iwlax2xx-firmware
installpkg b43-openfwwf
%endif
--
2.41.0

View File

@ -4,7 +4,7 @@
Name: lorax
Version: 39.1
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Tool for creating the anaconda install images
License: GPL-2.0-or-later
@ -14,6 +14,10 @@ URL: https://github.com/weldr/lorax
# git checkout -b archive-branch lorax-%%{version}-%%{release}
# tito build --tgz
Source0: %{name}-%{version}.tar.gz
# https://github.com/weldr/lorax/pull/1332
# https://pagure.io/releng/issue/11511
# adapt to renamed iwl firmware packages
Patch0: 0001-runtime-install-exclude-renamed-iwl-firmware-package.patch
BuildRequires: python3-devel
BuildRequires: python3-setuptools
@ -168,6 +172,9 @@ make DESTDIR=$RPM_BUILD_ROOT mandir=%{_mandir} install
%{_datadir}/lorax/templates.d/*
%changelog
* Tue Jul 04 2023 Adam Williamson <awilliam@redhat.com> - 39.1-3
- Backport PR #1332 to handle renamed iwl firmware packages
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 39.1-2
- Rebuilt for Python 3.12