Change kern.bootfile when mv'ing the kernel
Not tested by: brian
This commit is contained in:
parent
65ad7c437d
commit
9082264160
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=85073
@ -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 \
|
||||
|
@ -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 \
|
||||
|
@ -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 \
|
||||
|
@ -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 \
|
||||
|
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user