git: 2ee0f3c954e7 - stable/14 - release: Install wireless firmware to bootonly media

From: Joseph Mingrone <jrm_at_FreeBSD.org>
Date: Sun, 20 Jul 2025 18:07:38 UTC
The branch stable/14 has been updated by jrm:

URL: https://cgit.FreeBSD.org/src/commit/?id=2ee0f3c954e71888028873d85a392c710d6f0b00

commit 2ee0f3c954e71888028873d85a392c710d6f0b00
Author:     Joseph Mingrone <jrm@FreeBSD.org>
AuthorDate: 2025-07-16 13:46:34 +0000
Commit:     Joseph Mingrone <jrm@FreeBSD.org>
CommitDate: 2025-07-20 18:07:02 +0000

    release: Install wireless firmware to bootonly media
    
    Also install wireless firmware packages to the bootonly ISO and the
    mini-memstick image so users can fetch installation files over a
    wireless connection.
    
    Reported by:    Mark Philips <mark@freebsdfoundation.org>
    Reviewed by:    bz, emaste, imp, releng (cperciva)
    Sponsored by:   The FreeBSD Foundation
    Differential Revision:  https://reviews.freebsd.org/D51348
    
    (cherry picked from commit 655fcdde1aff164a3a02ad073334611117e20d4c)
---
 release/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/release/Makefile b/release/Makefile
index d9d5d459b5bf..6be1d689000b 100644
--- a/release/Makefile
+++ b/release/Makefile
@@ -237,6 +237,10 @@ bootonly: packagesystem
 	echo "./usr/freebsd-dist type=dir uname=root gname=wheel mode=0755" >> ${.TARGET}/METALOG
 	echo "./usr/freebsd-dist/MANIFEST type=file uname=root gname=wheel mode=0644" >> ${.TARGET}/METALOG
 .endif
+.if ${.MAKE.OS} == "FreeBSD" && (!defined(NOPKG) || empty(NOPKG))
+# Install packages onto release media.
+	${PKG_INSTALL} wifi-firmware-iwlwifi-kmod wifi-firmware-rtw88-kmod || true
+.endif
 # Set up installation environment
 	ln -fs /tmp/bsdinstall_etc/resolv.conf ${.TARGET}/etc/resolv.conf
 	echo sendmail_enable=\"NONE\" > ${.TARGET}/etc/rc.conf