summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--setup-disk.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/setup-disk.in b/setup-disk.in
index fca6fbf..7e87f2a 100644
--- a/setup-disk.in
+++ b/setup-disk.in
@@ -1601,7 +1601,8 @@ if [ -z "$SWAP_SIZE" ]; then
SWAP_SIZE=$(find_swap_size $diskdevs)
fi
-if [ -n "$USE_EFI" ] && [ -z "$BOOT_SIZE" ]; then
+# reduce size of ESP partition
+if [ -n "$USE_EFI" ] && [ -z "$USE_CRYPT" ] && [ -z "$BOOT_SIZE" ]; then
blocksize=$(cat $(echo $diskdevs | sed -E -e 's:/dev/([^ ]+):/sys/block/\1/queue/logical_block_size:g') | sort -n | tail -n 1)
# calculate minimal FAT32 size
# for block size 512 minimal size is 32MB