Skip to content

Commit 82a3fd2

Browse files
committed
don't use this commit - APA uses more space, so give it more
1 parent db3b639 commit 82a3fd2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/functions/image/partitioning.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,9 @@ function prepare_partitions() {
129129
# stage: calculate rootfs size
130130
declare -g -i rootfs_size
131131
rootfs_size=$(du --apparent-size -sm "${SDCARD}"/ | cut -f1) # MiB
132+
if [[ $APA_IS_ACTIVE ]]; then # FIXME: APA takes up more space
133+
rootfs_size=$(($rootfs_size*11/10))
134+
fi
132135
display_alert "Current rootfs size" "$rootfs_size MiB" "info"
133136

134137
call_extension_method "prepare_image_size" "config_prepare_image_size" <<- 'PREPARE_IMAGE_SIZE'

0 commit comments

Comments
 (0)