summaryrefslogtreecommitdiffstats
path: root/sys/conf/Makefile.alpha
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2001-10-17 18:04:13 +0000
committerbrian <brian@FreeBSD.org>2001-10-17 18:04:13 +0000
commitddef7c98c51d09f80ae57f4f83e00ee5b6e3ee72 (patch)
treea9afe3ff22d704b056856948ef89446379fb3ed0 /sys/conf/Makefile.alpha
parent927ee0e1edb24651851d5805758d2bda6b428b73 (diff)
downloadFreeBSD-src-ddef7c98c51d09f80ae57f4f83e00ee5b6e3ee72.zip
FreeBSD-src-ddef7c98c51d09f80ae57f4f83e00ee5b6e3ee72.tar.gz
Change kern.bootfile when mv'ing the kernel
Not tested by: brian
Diffstat (limited to 'sys/conf/Makefile.alpha')
-rw-r--r--sys/conf/Makefile.alpha2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/conf/Makefile.alpha b/sys/conf/Makefile.alpha
index e9c5ade..23d5cec 100644
--- a/sys/conf/Makefile.alpha
+++ b/sys/conf/Makefile.alpha
@@ -280,6 +280,8 @@ kernel-install kernel-install.debug:
-rm -rf ${DESTDIR}${KODIR}.old
.endif
mv ${DESTDIR}${KODIR} ${DESTDIR}${KODIR}.old
+ [ "`sysctl -n kern.bootfile`" != "${DESTDIR}${KODIR}/kernel" ] || \
+ sysctl kern.bootfile=${DESTDIR}${KODIR}.old/kernel
.endif
mkdir -p ${DESTDIR}${KODIR}
install -c -m 555 -o root -g wheel \
OpenPOWER on IntegriCloud