From 7b92318f6459ecd9f5d620a8b7012f70bf5c9bf1 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Wed, 25 May 2011 11:32:52 +0100 Subject: Fixing ext2/ext3 case in lb_binary_rootfs to work with --build-with-chroot false (Closes: #627902). --- scripts/build/lb_binary_rootfs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/build/lb_binary_rootfs b/scripts/build/lb_binary_rootfs index 52204d4ac..85785fc7e 100755 --- a/scripts/build/lb_binary_rootfs +++ b/scripts/build/lb_binary_rootfs @@ -100,7 +100,16 @@ case "${LB_CHROOT_FILESYSTEM}" in rm -f binary/${INITFS}/filesystem.${LB_CHROOT_FILESYSTEM} fi - DU_DIM="$(du -ks chroot/chroot | cut -f1)" + case "${LB_BUILD_WITH_CHROOT}" in + true) + DU_DIM="$(du -ks chroot/chroot | cut -f1)" + ;; + + false) + DU_DIM="$(du -ks chroot | cut -f1)" + ;; + esac + REAL_DIM="$(Calculate_partition_size ${DU_DIM} ${LB_CHROOT_FILESYSTEM})" RESERVED_PERCENTAGE="--reserved-percentage" -- cgit v1.2.3