aboutsummaryrefslogtreecommitdiff
path: root/sys/conf/Makefile.i386
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>2001-10-17 13:57:32 +0000
committerBrian Somers <brian@FreeBSD.org>2001-10-17 13:57:32 +0000
commit82a6d03aa61d8ca2ad57d88bf04964ebb196f43e (patch)
treef5e12300c1d2533cec452e83468c1d058a8b1149 /sys/conf/Makefile.i386
parent913b0e4e95ed417b1bceab436a26c8b8ae3da16d (diff)
downloadsrc-82a6d03aa61d8ca2ad57d88bf04964ebb196f43e.tar.gz
src-82a6d03aa61d8ca2ad57d88bf04964ebb196f43e.zip
Change kern.bootfile when mv'ing the kernel
Notes
Notes: svn path=/head/; revision=85057
Diffstat (limited to 'sys/conf/Makefile.i386')
-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 \