release: Pass -N to pkg-stage if NO_ROOT set

PR:		283387
Reviewed by:	brooks
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D50268
This commit is contained in:
Ed Maste 2025-05-06 13:59:06 -04:00
parent 5e25f7b099
commit 79e70e12f5

View file

@ -321,13 +321,9 @@ packagesystem: ${DISTRIBUTIONS}
touch ${.TARGET}
pkg-stage: dvd
# TODO: Support for -DNO_ROOT
.if !defined(NOPKG) || empty(NOPKG)
.if defined(NO_ROOT)
.warning pkg-stage does not yet support NO_ROOT.
.endif
env PORTSDIR=${PORTSDIR} REPOS_DIR=${.CURDIR}/pkg_repos/ \
sh ${.CURDIR}/scripts/pkg-stage.sh
sh ${.CURDIR}/scripts/pkg-stage.sh ${NO_ROOT:D-N}
mkdir -p ${.OBJDIR}/dvd/packages/repos/
cp ${.CURDIR}/scripts/FreeBSD_install_cdrom.conf \
${.OBJDIR}/dvd/packages/repos/