From 19852487b0a0c913770d7d400742a278116b409d Mon Sep 17 00:00:00 2001 From: fkDead Date: Thu, 26 Nov 2026 18:18:26 +0100 Subject: [PATCH] perf(iso): skip router firmware and optimized bytecode in baseline Router and server chip firmware is never found in a PC (~47 MiB), and nothing runs Python with -O (~7 MiB). --- configs/baseline/pacman.conf | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/configs/baseline/pacman.conf b/configs/baseline/pacman.conf index 8d8f637..8275068 100644 --- a/configs/baseline/pacman.conf +++ b/configs/baseline/pacman.conf @@ -32,6 +32,14 @@ Architecture = auto # initrd entry, no microcode hook) and archiso empties /boot in the image; the # installed system gets its microcode from /usr/lib/firmware via mkinitcpio. NoExtract = usr/share/doc/* usr/share/gtk-doc/* boot/intel-ucode.img boot/amd-ucode.img +# Firmware of router and server chips, never found in a PC (~47 MiB): Qualcomm +# IPQ/QCN Wi-Fi SoCs, MediaTek Filogic access points (mt7996), NXP DPAA2, +# Chelsio and Broadcom NetXtreme II server cards, QLogic NetXen. build.sh adds +# the firmware versions the kernel never loads (scripts/firmware-noextract.py). +NoExtract = usr/lib/firmware/ath11k/IPQ* usr/lib/firmware/ath11k/QCN9074* usr/lib/firmware/ath12k/IPQ* usr/lib/firmware/ath12k/QCN9274* usr/lib/firmware/mediatek/mt7996/* usr/lib/firmware/dpaa2/* usr/lib/firmware/cxgb4/* usr/lib/firmware/bnx2x/* usr/lib/firmware/phanfw.bin* +# Bytecode for "python -O" only (~7 MiB): nothing runs Python that way, and +# the plain .pyc next to them stays. +NoExtract = usr/lib/python3*/__pycache__/*.opt-1.pyc usr/lib/python3*/__pycache__/*.opt-2.pyc # Misc options #UseSyslog