summaryrefslogtreecommitdiffstats
path: root/tools/builder_common.sh
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2015-08-27 12:07:26 -0300
committerRenato Botelho <renato@netgate.com>2015-08-27 12:07:26 -0300
commit3ade347884c368d2fbf92dc8fc220360a23ac8e8 (patch)
treebe4f3aabe200e12e35e727b2ea006f92d35f6b01 /tools/builder_common.sh
parent50dcadff366976398e5be01b70276886be6a5a5e (diff)
downloadpfsense-3ade347884c368d2fbf92dc8fc220360a23ac8e8.zip
pfsense-3ade347884c368d2fbf92dc8fc220360a23ac8e8.tar.gz
Remove lots of sync calls
Diffstat (limited to 'tools/builder_common.sh')
-rw-r--r--tools/builder_common.sh7
1 files changed, 0 insertions, 7 deletions
diff --git a/tools/builder_common.sh b/tools/builder_common.sh
index 0fba48f..95c6eaa 100644
--- a/tools/builder_common.sh
+++ b/tools/builder_common.sh
@@ -668,7 +668,6 @@ awk '
fi
umount ${MNT}
- sync
# Restore the original trap
trap "mdconfig -d -u ${MD}; return" 1 2 15 EXIT
@@ -853,7 +852,6 @@ ova_repack_vbox_image() {
ova_umount_mnt() {
# Unmount /dev/mdX
umount /mnt
- sync ; sync
}
# called from create_ova_image
@@ -863,7 +861,6 @@ ova_umount_mdconfig() {
gpart show $MD
echo ">>> Unmounting ${MD}..." | tee -a ${LOGFILE}
mdconfig -d -u $MD
- sync ; sync
}
# called from create_ova_image
@@ -960,7 +957,6 @@ ova_cpdup_files() {
cpdup -o ${FINAL_CHROOT_DIR}/sbin /mnt/sbin
cpdup -o ${FINAL_CHROOT_DIR}/usr /mnt/usr
cpdup -o ${FINAL_CHROOT_DIR}/var /mnt/var
- sync ; sync ; sync ; sync
}
ova_setup_platform_specific() {
@@ -993,13 +989,10 @@ ova_partition_gpart() {
gpart add -s $OVA_SWAP_PART_SIZE -t freebsd-swap -i 3 $MD
echo ">>> Running newfs..." | tee -a ${LOGFILE}
newfs -U /dev/${MD}p2
- sync ; sync ; sync ; sync
echo ">>> Labeling partitions: ${MD}p2..." | tee -a ${LOGFILE}
glabel label ${PRODUCT_NAME} ${MD}p2
- sync ; sync
echo ">>> Labeling partitions: ${MD}p3..." | tee -a ${LOGFILE}
glabel label swap0 ${MD}p3
- sync ; sync
}
# called from create_ova_image
OpenPOWER on IntegriCloud