partitioning: do not force image size estimation for (potentially) compressed btrfs rootfs

This commit is contained in:
Alex Shumsky
2024-01-13 23:01:30 +03:00
committed by Igor
parent 64094ee20e
commit 86a743ad83

View File

@@ -129,7 +129,7 @@ function prepare_partitions() {
display_alert "Using user-defined image size" "$FIXED_IMAGE_SIZE MiB" "info"
sdsize=$FIXED_IMAGE_SIZE
# basic sanity check
if [[ $ROOTFS_TYPE != nfs && $sdsize -lt $rootfs_size ]]; then
if [[ $ROOTFS_TYPE != nfs && $ROOTFS_TYPE != btrfs && $sdsize -lt $rootfs_size ]]; then
exit_with_error "User defined image size is too small" "$sdsize <= $rootfs_size"
fi
else