Commit f2a081f9 authored by Natanael Copa's avatar Natanael Copa
Browse files

setup-disk: fix /boot size for UEFI and encryption

Currently, /boot becomes 34 MB, which is too small.

Fixes #10536
parent 2eccbac1
Pipeline #142679 passed with stage
in 20 seconds
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment