summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/conf/Makefile.i3862
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/conf/Makefile.i386 b/sys/conf/Makefile.i386
index aea5affc08a7..0d6dcdd0cfb7 100644
--- a/sys/conf/Makefile.i386
+++ b/sys/conf/Makefile.i386
@@ -238,6 +238,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 \