Compare commits

...
Sign in to create a new pull request.

4 commits

Author SHA1 Message Date
Adam Williamson
94d225feb6 Rebuild with no changes for Bodhi purposes 2022-01-06 10:09:06 -08:00
Brian C. Lane
8a6043dbac - cleanup: remove binaries from lilv (awilliam@redhat.com)
- runtime-cleanup: remove pipewire-related packages (awilliam@redhat.com)
2021-12-14 13:53:20 -08:00
Brian C. Lane
cebf710590 gating: Use lazy unmount 2021-11-18 08:24:24 -08:00
Brian C. Lane
828b0b0c5b - mount: Switch to using pycdio instead of pycdlib (bcl@redhat.com)
- fedora-livemedia: Turn off GNOME welcome tour (bcl@redhat.com)
- dnfbase: Handle defaults better (bcl@redhat.com)
- ltmpl: Add version compare support to installpkg (bcl@redhat.com)
- fedora-livemedia: Add anaconda-install-img-deps (bcl@redhat.com)
- Use fedora:35 for Dockerfile.test (bcl@redhat.com)
- Move default releasever into pylorax DEFAULT_RELEASEVER (bcl@redhat.com)
- runtime-postinstall: Drop raidstart/stop stub code (bcl@redhat.com)
- Update runtime-install/cleanup for Marvell Prestera fw split (awilliam@redhat.com)
- New lorax documentation - 35.7 (bcl@redhat.com)
- Fix pylint warnings about string formatting (bcl@redhat.com)
- tests: Ignore new pylint warnings (bcl@redhat.com)
- runtime-install: exclude liquidio and netronome firmwares (awilliam@redhat.com)
- runtime-cleanup: drop Marvell Prestera firmware files (awilliam@redhat.com)
- runtime-cleanup: drop some Qualcomm smartphone firmwares (awilliam@redhat.com)
2021-11-10 16:15:44 -08:00
7 changed files with 40 additions and 121 deletions

2
.gitignore vendored
View file

@ -203,3 +203,5 @@
/lorax-35.5.tar.gz
/lorax-35.6.tar.gz
/lorax-35.7.tar.gz
/lorax-35.8.tar.gz
/lorax-35.9.tar.gz

View file

@ -1,29 +0,0 @@
From a70fcd5ea015580f83e9470fa65d7e5a657243f4 Mon Sep 17 00:00:00 2001
From: Adam Williamson <awilliam@redhat.com>
Date: Wed, 6 Oct 2021 14:19:47 -0700
Subject: [PATCH 1/3] runtime-cleanup: drop some Qualcomm smartphone firmwares
These firmwares are for Qualcomm smartphone chipsets (SM845 and
SM8250). Don't think they're any use in network install images.
Signed-off-by: Adam Williamson <awilliam@redhat.com>
---
share/templates.d/99-generic/runtime-cleanup.tmpl | 2 ++
1 file changed, 2 insertions(+)
diff --git a/share/templates.d/99-generic/runtime-cleanup.tmpl b/share/templates.d/99-generic/runtime-cleanup.tmpl
index 37c45338..5960c82b 100644
--- a/share/templates.d/99-generic/runtime-cleanup.tmpl
+++ b/share/templates.d/99-generic/runtime-cleanup.tmpl
@@ -231,6 +231,8 @@ removefrom linux-firmware /usr/lib/firmware/intel/IntcSST2.bin
removefrom linux-firmware /usr/lib/firmware/intel/fw_sst*
removefrom linux-firmware /usr/lib/firmware/intel/dsp*
removefrom linux-firmware /usr/lib/firmware/as102*
+removefrom linux-firmware /usr/lib/firmware/qcom/sdm845/*
+removefrom linux-firmware /usr/lib/firmware/qcom/sm8250/*
removefrom linux-firmware /usr/lib/firmware/qcom/venus*/*
removefrom linux-firmware /usr/lib/firmware/meson/vdec/*
removefrom linux-firmware /usr/lib/firmware/mellanox/mlxsw_spectrum*
--
2.32.0

View file

@ -1,28 +0,0 @@
From 8f4a66bf53acc4beae9530361de96fdbb81b44f9 Mon Sep 17 00:00:00 2001
From: Adam Williamson <awilliam@redhat.com>
Date: Wed, 6 Oct 2021 14:21:34 -0700
Subject: [PATCH 2/3] runtime-cleanup: drop Marvell Prestera firmware files
These add up to 26MB and they are for high-end switches, unlikely
targets for network installs.
Signed-off-by: Adam Williamson <awilliam@redhat.com>
---
share/templates.d/99-generic/runtime-cleanup.tmpl | 1 +
1 file changed, 1 insertion(+)
diff --git a/share/templates.d/99-generic/runtime-cleanup.tmpl b/share/templates.d/99-generic/runtime-cleanup.tmpl
index 5960c82b..827465f0 100644
--- a/share/templates.d/99-generic/runtime-cleanup.tmpl
+++ b/share/templates.d/99-generic/runtime-cleanup.tmpl
@@ -236,6 +236,7 @@ removefrom linux-firmware /usr/lib/firmware/qcom/sm8250/*
removefrom linux-firmware /usr/lib/firmware/qcom/venus*/*
removefrom linux-firmware /usr/lib/firmware/meson/vdec/*
removefrom linux-firmware /usr/lib/firmware/mellanox/mlxsw_spectrum*
+removefrom linux-firmware /usr/lib/firmware/mrvl/prestera/*
%if basearch != "aarch64":
removefrom linux-firmware /usr/lib/firmware/dpaa2/*
%endif
--
2.32.0

View file

@ -1,41 +0,0 @@
From 8514ce1ceb9b31cc5b0ab7d00951b70e9c237609 Mon Sep 17 00:00:00 2001
From: Adam Williamson <awilliam@redhat.com>
Date: Wed, 6 Oct 2021 14:43:21 -0700
Subject: [PATCH 3/3] runtime-install: exclude liquidio and netronome firmwares
As Peter Robinson explains here:
https://bugzilla.redhat.com/show_bug.cgi?id=2011615#c3
these are not useful, as the devices they're for do not support
netinst-style deployment.
Signed-off-by: Adam Williamson <awilliam@redhat.com>
---
share/templates.d/99-generic/runtime-install.tmpl | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/share/templates.d/99-generic/runtime-install.tmpl b/share/templates.d/99-generic/runtime-install.tmpl
index 4aabe292..fddac051 100644
--- a/share/templates.d/99-generic/runtime-install.tmpl
+++ b/share/templates.d/99-generic/runtime-install.tmpl
@@ -17,12 +17,16 @@ installpkg grubby
%if basearch != "s390x":
## skip the firmware for sound, video, and scanners, none of which will
## do much good for the installer. Also skip uhd-firmware which is not
- ## even a kernel firmware package.
+ ## even a kernel firmware package. liquidio and netronome firmwares are
+ ## for enterprise switch devices, netinst deployment does not work on
+ ## these so there is no point shipping them - see
+ ## https://bugzilla.redhat.com/show_bug.cgi?id=2011615
installpkg --optional *-firmware --except alsa* --except midisport-firmware \
--except crystalhd-firmware --except ivtv-firmware \
--except cx18-firmware --except iscan-firmware \
--except uhd-firmware --except lulzbot-marlin-firmware \
- --except gnome-firmware --except sigrok-firmware
+ --except gnome-firmware --except sigrok-firmware \
+ --except liquidio-firmware --except netronome-firmware
installpkg b43-openfwwf
%endif
--
2.32.0

View file

@ -3,7 +3,7 @@
%define debug_package %{nil}
Name: lorax
Version: 35.7
Version: 35.9
Release: 2%{?dist}
Summary: Tool for creating the anaconda install images
@ -14,13 +14,6 @@ URL: https://github.com/weldr/lorax
# git checkout -b archive-branch lorax-%%{version}-%%{release}
# tito build --tgz
Source0: %{name}-%{version}.tar.gz
# Trim some unneeded firmware files to reduce size of netinsts
# https://bugzilla.redhat.com/show_bug.cgi?id=2009730
# https://bugzilla.redhat.com/show_bug.cgi?id=2009731
# https://github.com/weldr/lorax/pull/1175
Patch0: 0001-runtime-cleanup-drop-some-Qualcomm-smartphone-firmwa.patch
Patch1: 0002-runtime-cleanup-drop-Marvell-Prestera-firmware-files.patch
Patch2: 0003-runtime-install-exclude-liquidio-and-netronome-firmw.patch
BuildRequires: python3-devel
BuildRequires: make
@ -58,7 +51,7 @@ Requires: python3-mako
Requires: python3-kickstart >= 3.19
Requires: python3-dnf >= 3.2.0
Requires: python3-librepo
Requires: python3-pycdlib
Requires: python3-pycdio
%if 0%{?fedora}
# Fedora specific deps
@ -141,7 +134,7 @@ Lorax templates for creating the boot.iso and live isos are placed in
/usr/share/lorax/templates.d/99-generic
%prep
%autosetup -p1 -n %{name}-%{version}
%setup -q -n %{name}-%{version}
%build
@ -182,8 +175,29 @@ make DESTDIR=$RPM_BUILD_ROOT mandir=%{_mandir} install
%{_datadir}/lorax/templates.d/*
%changelog
* Fri Oct 08 2021 Adam Williamson <awilliam@redhat.com> - 35.7-2
- Backport PR #1175 to reduce size of netinsts (#2009730, #2009731)
* Thu Jan 06 2022 Adam Williamson <awilliam@redhat.com> - 35.9-2
- Rebuild with no changes for Bodhi purposes
* Tue Dec 14 2021 Brian C. Lane <bcl@redhat.com> 35.9-1
- cleanup: remove binaries from lilv (awilliam@redhat.com)
- runtime-cleanup: remove pipewire-related packages (awilliam@redhat.com)
* Wed Nov 10 2021 Brian C. Lane <bcl@redhat.com> 35.8-1
- mount: Switch to using pycdio instead of pycdlib (bcl@redhat.com)
- fedora-livemedia: Turn off GNOME welcome tour (bcl@redhat.com)
- dnfbase: Handle defaults better (bcl@redhat.com)
- ltmpl: Add version compare support to installpkg (bcl@redhat.com)
- fedora-livemedia: Add anaconda-install-img-deps (bcl@redhat.com)
- Use fedora:35 for Dockerfile.test (bcl@redhat.com)
- Move default releasever into pylorax DEFAULT_RELEASEVER (bcl@redhat.com)
- runtime-postinstall: Drop raidstart/stop stub code (bcl@redhat.com)
- Update runtime-install/cleanup for Marvell Prestera fw split (awilliam@redhat.com)
- New lorax documentation - 35.7 (bcl@redhat.com)
- Fix pylint warnings about string formatting (bcl@redhat.com)
- tests: Ignore new pylint warnings (bcl@redhat.com)
- runtime-install: exclude liquidio and netronome firmwares (awilliam@redhat.com)
- runtime-cleanup: drop Marvell Prestera firmware files (awilliam@redhat.com)
- runtime-cleanup: drop some Qualcomm smartphone firmwares (awilliam@redhat.com)
* Tue Sep 07 2021 Brian C. Lane <bcl@redhat.com> 35.7-1
- templates: Remove memtest86+ (bcl@redhat.com)

View file

@ -1 +1 @@
SHA512 (lorax-35.7.tar.gz) = 21ee1fb8bf2228aa802ae13244955a7b1c14f655ed5d9ef40caee0f3ae9085c2b327e611518a60c57e4ea9ee85f1579242804dfc49a5e53cf60fa586dee38530
SHA512 (lorax-35.9.tar.gz) = 70170551f207a66965cbaa8855b2759b18912e89f384e9dadb7f5e72ab93130f28c98ee4422828497db1b28edc463f7d6e0e73e2386dbb6e71673c5c2fdf6e52

View file

@ -30,6 +30,12 @@ function running {
echo -e "\n\n#### RUN: $1\n"
}
# unmount the dirs lazily because sometimes some outside thing is still touching them
function umount_dirs {
umount --lazy "$IMGDIR"
umount --lazy "$ISODIR"
}
[ -e "$ISODIR" ] || mkdir "$ISODIR"
[ -e "$IMGDIR" ] || mkdir "$IMGDIR"
@ -43,8 +49,7 @@ function ks_only {
test_ks
status "Add kickstart"
umount "$IMGDIR"
umount "$ISODIR"
umount_dirs
}
function test_ks {
@ -71,8 +76,7 @@ function ks_serial {
test_ks_serial
status "Add kickstart and serial cmdline"
umount "$IMGDIR"
umount "$ISODIR"
umount_dirs
}
function test_ks_serial {
@ -95,8 +99,7 @@ function new_volid {
test_volid
status "Use a new VOLID"
umount "$IMGDIR"
umount "$ISODIR"
umount_dirs
}
function test_volid {
@ -118,8 +121,7 @@ function add_files {
test_files
status "Add files"
umount "$IMGDIR"
umount "$ISODIR"
umount_dirs
}
function test_files {
@ -139,8 +141,7 @@ function run_all {
test_files
status "Use all the options"
umount "$IMGDIR"
umount "$ISODIR"
umount_dirs
}