summaryrefslogtreecommitdiff
path: root/functions/losetup.sh
diff options
context:
space:
mode:
authorCody A.W. Somerville <cody.somerville@canonical.com>2009-11-12 06:43:35 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:09:48 +0100
commit605af5262385ef9743066562b1682b888a6cb00b (patch)
treedcaa4c408587b23903eb2b266903d1f63d66fdb3 /functions/losetup.sh
parentf8b187c7a99eb6a180dccc127bd89f77077b1747 (diff)
downloadvyos-live-build-605af5262385ef9743066562b1682b888a6cb00b.tar.gz
vyos-live-build-605af5262385ef9743066562b1682b888a6cb00b.zip
Fixing intermittent truncating of filesystem.
Diffstat (limited to 'functions/losetup.sh')
-rwxr-xr-xfunctions/losetup.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/functions/losetup.sh b/functions/losetup.sh
index 51f542659..1b1f61f42 100755
--- a/functions/losetup.sh
+++ b/functions/losetup.sh
@@ -44,9 +44,9 @@ Calculate_partition_size ()
PERCENT="5"
;;
*)
- PERCENT="2"
+ PERCENT="3"
;;
esac
- echo $(expr ${ORIGINAL_SIZE} + ${ORIGINAL_SIZE} \* ${PERCENT} / 100)
+ echo $(expr ${ORIGINAL_SIZE} + ${ORIGINAL_SIZE} \* ${PERCENT} / 100 + 1)
}