Add 'chflags -R noschg' to the deletion process for the TEMPROOT
directory so that /var/empty, and any other such items that are added in the future can be deleted effectively.
This commit is contained in:
parent
07a1fb30e3
commit
a85eac0492
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=98876
@ -425,6 +425,7 @@ case "${RERUN}" in
|
||||
echo ''
|
||||
echo " *** Deleting the old ${TEMPROOT}"
|
||||
echo ''
|
||||
chflags -R noschg "${TEMPROOT}"
|
||||
rm -rf "${TEMPROOT}"
|
||||
unset TEST_TEMP_ROOT
|
||||
;;
|
||||
@ -847,7 +848,7 @@ case "${AUTO_RUN}" in
|
||||
|
||||
case "${DEL_TEMPROOT}" in
|
||||
[yY]*)
|
||||
if rm -rf "${TEMPROOT}"; then
|
||||
if chflags -R noschg "${TEMPROOT}" && rm -rf "${TEMPROOT}"; then
|
||||
echo " *** ${TEMPROOT} has been deleted"
|
||||
else
|
||||
echo " *** Unable to delete ${TEMPROOT}"
|
||||
|
Loading…
Reference in New Issue
Block a user