aboutsummaryrefslogtreecommitdiff
path: root/sys/conf/Makefile.pc98
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2001-04-29 01:53:57 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2001-04-29 01:53:57 +0000
commitd856af0b1a16d43b33face2acba9f81ceb63409b (patch)
tree8976fd01055c75862ac0e27a10954e6eb05aad00 /sys/conf/Makefile.pc98
parent6fc237b59f67b625fdd91ed4bf8512480a1d7c7f (diff)
Add back in the bits to remove any existing "schg" flags as we have
kernel's out in wild that still have these flags set.
Notes
Notes: svn path=/head/; revision=76114
Diffstat (limited to 'sys/conf/Makefile.pc98')
-rw-r--r--sys/conf/Makefile.pc982
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/conf/Makefile.pc98 b/sys/conf/Makefile.pc98
index bce1d593be03..6bac3f4956e7 100644
--- a/sys/conf/Makefile.pc98
+++ b/sys/conf/Makefile.pc98
@@ -255,6 +255,7 @@ kernel-install kernel-install.debug:
fi
.if exists(${DESTDIR}${KODIR})
.if exists(${DESTDIR}${KODIR}.old)
+ @-chflags -R noschg ${DESTDIR}${KODIR}.old
-rm -rf ${DESTDIR}${KODIR}.old
.endif
mv ${DESTDIR}${KODIR} ${DESTDIR}${KODIR}.old
@@ -264,6 +265,7 @@ kernel-install kernel-install.debug:
${KERNEL_KO}${.TARGET:S/kernel-install//} ${DESTDIR}${KODIR}
kernel-reinstall kernel-reinstall.debug:
+ @-chflags -R noschg ${DESTDIR}${KODIR}
install -c -m 555 -o root -g wheel \
${KERNEL_KO}${.TARGET:S/kernel-reinstall//} ${DESTDIR}${KODIR}