From 82a6d03aa61d8ca2ad57d88bf04964ebb196f43e Mon Sep 17 00:00:00 2001 From: Brian Somers Date: Wed, 17 Oct 2001 13:57:32 +0000 Subject: [PATCH] Change kern.bootfile when mv'ing the kernel --- sys/conf/Makefile.i386 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/conf/Makefile.i386 b/sys/conf/Makefile.i386 index aea5affc08a..0d6dcdd0cfb 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 \