summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-07-19 16:13:35 -0300
committerRenato Botelho <renato@netgate.com>2016-07-19 16:13:49 -0300
commitf3553ac923051d619b43e3cac42ee5aef60ef36d (patch)
treeaead3efc6d6e353ec9269ca8af69334db04d2958
parenta3cba833a004cb7df22dfaec66a8512750285c79 (diff)
downloadpfsense-f3553ac923051d619b43e3cac42ee5aef60ef36d.zip
pfsense-f3553ac923051d619b43e3cac42ee5aef60ef36d.tar.gz
Remove immutable flag before delete directory
-rw-r--r--tools/builder_common.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/builder_common.sh b/tools/builder_common.sh
index 8fbd9bf..605f248 100644
--- a/tools/builder_common.sh
+++ b/tools/builder_common.sh
@@ -913,8 +913,10 @@ create_ova_image() {
LOGFILE=${BUILDER_LOGS}/ova.${TARGET}.log
- [ -d "${OVA_TMP}" ] \
- && rm -rf ${OVA_TMP}
+ if [ -d "${OVA_TMP}" ]; then
+ chflags -R noschg ${OVA_TMP}
+ rm -rf ${OVA_TMP}
+ fi
local _mntdir=${OVA_TMP}/mnt
mkdir -p ${_mntdir}
OpenPOWER on IntegriCloud