summaryrefslogtreecommitdiffstats
path: root/tools/builder_common.sh
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2015-08-27 14:22:13 -0300
committerRenato Botelho <renato@netgate.com>2015-08-27 14:22:13 -0300
commit6e134e300f279a63cbc8e99e02de4b2ed7370be6 (patch)
tree2d33fce12a7086d405e71250e172263989dfd1a2 /tools/builder_common.sh
parent2f4d7dbc67a563156e3662085a0d7d06fd95ad21 (diff)
downloadpfsense-6e134e300f279a63cbc8e99e02de4b2ed7370be6.zip
pfsense-6e134e300f279a63cbc8e99e02de4b2ed7370be6.tar.gz
Do not calculate size of mnt partition if it's not used anyway
Diffstat (limited to 'tools/builder_common.sh')
-rw-r--r--tools/builder_common.sh8
1 files changed, 0 insertions, 8 deletions
diff --git a/tools/builder_common.sh b/tools/builder_common.sh
index 4ad7d45..0bf81ae 100644
--- a/tools/builder_common.sh
+++ b/tools/builder_common.sh
@@ -805,7 +805,6 @@ create_ova_image() {
ova_mount_mnt $MD ${_mnt}
ova_cpdup_files ${_mnt}
ova_setup_platform_specific ${_mnt} # after cpdup
- ova_calculate_mnt_size ${_mnt}
ova_umount_mnt ${_mnt}
# Restore default action
trap "-" 1 2 15 EXIT
@@ -897,13 +896,6 @@ ova_prereq_check() {
}
# called from create_ova_image
-ova_calculate_mnt_size() {
- local _mnt="${1}"
- echo -n ">>> Calculating size of ${_mnt}..." | tee -a ${LOFGILE}
- du -d0 -h ${_mnt} | awk '{ print $1 }'
-}
-
-# called from create_ova_image
ova_create_raw_backed_file() {
if [ -z "${OVADISKSIZE}" ]; then
echo ">>> ERROR: OVADISKSIZE is not defined"
OpenPOWER on IntegriCloud