summaryrefslogtreecommitdiffstats
path: root/tools/builder_common.sh
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-09-23 06:39:38 -0300
committerRenato Botelho <renato@netgate.com>2016-09-23 06:39:38 -0300
commited245829a8b1da1e686549966adc6ff5d34f2458 (patch)
tree8c9e5b9d2c9689aa4499fb4c291975b77364aea6 /tools/builder_common.sh
parentc52bf7940fcca0453fc1cd0fc23e72192113350b (diff)
downloadpfsense-ed245829a8b1da1e686549966adc6ff5d34f2458.zip
pfsense-ed245829a8b1da1e686549966adc6ff5d34f2458.tar.gz
Add a workaround to umount virtual image directories
Diffstat (limited to 'tools/builder_common.sh')
-rw-r--r--tools/builder_common.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/builder_common.sh b/tools/builder_common.sh
index abf7657..a527d24 100644
--- a/tools/builder_common.sh
+++ b/tools/builder_common.sh
@@ -965,13 +965,14 @@ create_ova_image() {
echo ">>> ERROR: Error mounting temporary vmdk image. STOPPING!" | tee -a ${LOGFILE}
print_error_pfS
fi
- trap "umount ${_mntdir}; mdconfig -d -u ${_md}; return" 1 2 15 EXIT
+ trap "sync; sleep 3; umount ${_mntdir}; mdconfig -d -u ${_md}; return" 1 2 15 EXIT
echo "Done!" | tee -a ${LOGFILE}
clone_directory_contents ${FINAL_CHROOT_DIR} ${_mntdir}
sync
+ sleep 3
umount ${_mntdir} 2>&1 >>${LOGFILE}
mdconfig -d -u ${_md}
trap "-" 1 2 15 EXIT
OpenPOWER on IntegriCloud