git: 9431091ee021 - stable/14 - release: Don't break if firmware install fails

From: Colin Percival <cperciva_at_FreeBSD.org>
Date: Thu, 21 Nov 2024 06:13:54 UTC
The branch stable/14 has been updated by cperciva:

URL: https://cgit.FreeBSD.org/src/commit/?id=9431091ee021eca9eb4c768b566e623ba9333b41

commit 9431091ee021eca9eb4c768b566e623ba9333b41
Author:     Colin Percival <cperciva@FreeBSD.org>
AuthorDate: 2024-11-21 06:10:28 +0000
Commit:     Colin Percival <cperciva@FreeBSD.org>
CommitDate: 2024-11-21 06:13:44 +0000

    release: Don't break if firmware install fails
    
    On some platforms (e.g. powerpc) we don't have packages, so we can't
    install them onto the ISOs.  Proceed with building the images anyway.
    
    Reported by:    Weekly snapshot builds
    Fixes:  7e2996c1f5b4 ("release: install wireless firmware onto disc1 and dvd")
    MFC after:      1 minute
    
    (cherry picked from commit e8263ace39c8ecf11233c0a10d0b1839e6813046)
---
 release/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/release/Makefile b/release/Makefile
index c5970b184b96..152c2edfcf06 100644
--- a/release/Makefile
+++ b/release/Makefile
@@ -199,7 +199,7 @@ disc1: packagesystem
 .endif
 .if ${.MAKE.OS} == "FreeBSD" && (!defined(NOPKG) || empty(NOPKG))
 # Install packages onto release media.
-	${PKG_INSTALL} wifi-firmware-kmod-release
+	${PKG_INSTALL} wifi-firmware-kmod-release || true
 .endif
 # Set up installation environment
 	ln -fs /tmp/bsdinstall_etc/resolv.conf ${.TARGET}/etc/resolv.conf
@@ -273,7 +273,7 @@ dvd: packagesystem
 .endif
 .if ${.MAKE.OS} == "FreeBSD" && (!defined(NOPKG) || empty(NOPKG))
 # Install packages onto release media.
-	${PKG_INSTALL} wifi-firmware-kmod-release
+	${PKG_INSTALL} wifi-firmware-kmod-release || true
 .endif
 # Set up installation environment
 	ln -fs /tmp/bsdinstall_etc/resolv.conf ${.TARGET}/etc/resolv.conf