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

setup-disk: use logical_block_size to calculate ESP size

fixes https://gitlab.alpinelinux.org/alpine/aports/-/issues/13839
parent 8c9ea9d2
Pipeline #123485 passed with stage
in 38 seconds
......@@ -1597,7 +1597,7 @@ if [ -z "$SWAP_SIZE" ]; then
fi
if [ -n "$USE_EFI" ] && [ -z "$BOOT_SIZE" ]; then
blocksize=$(cat $(echo $diskdevs | sed -E -e 's:/dev/([^ ]+):/sys/block/\1/queue/physical_block_size:g') | sort -n | tail -n 1)
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
# for block size 4096, minimal size is 260M
......
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