From 9082264160f2b068718592bfd97e86af60a9bf2e Mon Sep 17 00:00:00 2001 From: Brian Somers Date: Wed, 17 Oct 2001 18:04:13 +0000 Subject: [PATCH] Change kern.bootfile when mv'ing the kernel Not tested by: brian --- sys/conf/Makefile.alpha | 2 ++ sys/conf/Makefile.ia64 | 2 ++ sys/conf/Makefile.pc98 | 2 ++ sys/conf/Makefile.powerpc | 2 ++ sys/conf/Makefile.sparc64 | 2 ++ 5 files changed, 10 insertions(+) diff --git a/sys/conf/Makefile.alpha b/sys/conf/Makefile.alpha index e9c5ade76cc4..23d5cec7b2c1 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 f89c881532ea..998e4031102e 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 d082fa6413c7..620c16a1538e 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 558b16fe585b..a699f460f781 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 5cc86a8ba35e..8d94ffc76a04 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 \