Create hierarchy before installing a new kernel. This is needed

because we require that a new kernel be installed prior to a new
world, and we may need some new directories to succeed.

Once MFCed, this will also help those poor souls who redundantly
``mv /modules /modules.old'' in RELENG_4 before an installkernel.

Requested by:	many
MFC after:	3 days
This commit is contained in:
Ruslan Ermilov 2004-03-13 15:46:34 +00:00
parent 11d905ecd8
commit 2f00651dae

View File

@ -581,6 +581,15 @@ reinstallkernel reinstallkernel.debug: ${SPECIAL_INSTALLCHECKS}
@echo "ERROR: No kernel \"${KERNCONF}\" to install."
false
.endif
@echo "--------------------------------------------------------------"
@echo ">>> Making hierarchy"
@echo "--------------------------------------------------------------"
cd ${.CURDIR}; \
${CROSSENV} PATH=${TMPPATH} ${MAKE} -f Makefile.inc1 hierarchy
@echo
@echo "--------------------------------------------------------------"
@echo ">>> Installing kernel"
@echo "--------------------------------------------------------------"
cd ${KRNLOBJDIR}/${INSTALLKERNEL}; \
${CROSSENV} PATH=${TMPPATH} \
${MAKE} KERNEL=${INSTKERNNAME} ${.TARGET:S/kernel//}