bsdinstall: Ignore -p[0-9]+ in determining BRANCH

The patch level is not part of the branch per se and should not be
used in constructing the FreeBSD-base.conf file used by bsdinstall.

MFC after:	1 day
This commit is contained in:
Colin Percival 2025-11-25 19:33:22 -08:00
parent 5af240c54b
commit d45816f369

View file

@ -16,7 +16,7 @@ FILESDIR= ${SHAREDIR}/bsdinstall
FILES= FreeBSD-base.conf
_BRANCH!= ${MAKE} -C ${SRCTOP}/release -V BRANCH
BRANCH?= ${_BRANCH}
BRANCH?= ${_BRANCH:C/-p[0-9]+$//}
_REVISION!= ${MAKE} -C ${SRCTOP}/release -V REVISION
REVISION?= ${_REVISION}