summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build/lb_binary_rootfs11
1 files changed, 10 insertions, 1 deletions
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"