Fixing ext2/ext3 case in lb_binary_rootfs to work with --build-with-chroot false (Closes: #627902).

This commit is contained in:
Colin Watson 2011-05-25 11:32:52 +01:00 committed by Daniel Baumann
parent 348cb4b391
commit 7b92318f64
1 changed files with 10 additions and 1 deletions

View File

@ -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"