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 committed 2025-11-26 09:07:24 -08:00
1 parent 5af240c54b
commit d45816f369
1 file changed
+1 -1
+1 -1
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}