Safer version of the chflags command.

This commit is contained in:
Ruslan Ermilov 2005-01-13 08:29:51 +00:00
parent de8a6c067a
commit 37966461c0

View File

@ -354,7 +354,7 @@ release rerelease:
# NB: clear any vestigial devfs mount, just in case # NB: clear any vestigial devfs mount, just in case
-umount ${CHROOTDIR}/dev > /dev/null 2>&1 -umount ${CHROOTDIR}/dev > /dev/null 2>&1
-rm -rf ${CHROOTDIR} 2>/dev/null -rm -rf ${CHROOTDIR} 2>/dev/null
-chflags -R noschg ${CHROOTDIR}/. -chflags -R 0 ${CHROOTDIR}/.
-rm -rf ${CHROOTDIR} -rm -rf ${CHROOTDIR}
.endif .endif
mkdir -p ${CHROOTDIR} mkdir -p ${CHROOTDIR}