From 8d373e005b776d56a327385d1569883758d5af21 Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Sun, 7 Sep 2008 15:39:29 +0100 Subject: Refactor partition size calculation, ensuring a uniform increase for ext partitions. --- helpers/lh_binary_rootfs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'helpers/lh_binary_rootfs') diff --git a/helpers/lh_binary_rootfs b/helpers/lh_binary_rootfs index 718f79fd3..85cccb910 100755 --- a/helpers/lh_binary_rootfs +++ b/helpers/lh_binary_rootfs @@ -137,7 +137,8 @@ case "${LH_CHROOT_FILESYSTEM}" in fi DU_DIM="$(du -ks chroot/chroot | cut -f1)" - REAL_DIM="$(expr ${DU_DIM} + ${DU_DIM} / 20)" # Just 5% more to be sure, need something more sophistcated here... + REAL_DIM="$(Calculate_partition_size ${DU_DIM} ${LH_CHROOT_FILESYSTEM})" + if [ "${LH_DISTRIBUTION}" = "etch" ] then RESERVED_PERCENTAGE="--reserved-blocks" -- cgit v1.2.3