summaryrefslogtreecommitdiffstats
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
parent927ee0e1edb24651851d5805758d2bda6b428b73 (diff)
downloadFreeBSD-src-ddef7c98c51d09f80ae57f4f83e00ee5b6e3ee72.zip
FreeBSD-src-ddef7c98c51d09f80ae57f4f83e00ee5b6e3ee72.tar.gz
Change kern.bootfile when mv'ing the kernel
Not tested by: brian
-rw-r--r--sys/conf/Makefile.alpha2
-rw-r--r--sys/conf/Makefile.ia642
-rw-r--r--sys/conf/Makefile.pc982
-rw-r--r--sys/conf/Makefile.powerpc2
-rw-r--r--sys/conf/Makefile.sparc642
5 files changed, 10 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 \
diff --git a/sys/conf/Makefile.ia64 b/sys/conf/Makefile.ia64
index f89c881..998e403 100644
--- a/sys/conf/Makefile.ia64
+++ b/sys/conf/Makefile.ia64
@@ -248,6 +248,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 \
diff --git a/sys/conf/Makefile.pc98 b/sys/conf/Makefile.pc98
index d082fa6..620c16a 100644
--- a/sys/conf/Makefile.pc98
+++ b/sys/conf/Makefile.pc98
@@ -241,6 +241,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 \
diff --git a/sys/conf/Makefile.powerpc b/sys/conf/Makefile.powerpc
index 558b16f..a699f46 100644
--- a/sys/conf/Makefile.powerpc
+++ b/sys/conf/Makefile.powerpc
@@ -244,6 +244,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 \
diff --git a/sys/conf/Makefile.sparc64 b/sys/conf/Makefile.sparc64
index 5cc86a8..8d94ffc 100644
--- a/sys/conf/Makefile.sparc64
+++ b/sys/conf/Makefile.sparc64
@@ -255,6 +255,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