summaryrefslogtreecommitdiff
path: root/setup-disk.in
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2022-05-25 21:02:03 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2022-05-25 21:02:03 +0200
commitfa32f6c5f40477d03d5d09a83add56609edef880 (patch)
treebda298c01baad6b5b21e537e1f29ddb921eb3be1 /setup-disk.in
parent8c9ea9d2c2e13435ee69ee4103977cbf638346c4 (diff)
downloadalpine-conf-fa32f6c5f40477d03d5d09a83add56609edef880.zip
setup-disk: use logical_block_size to calculate ESP size
fixes https://gitlab.alpinelinux.org/alpine/aports/-/issues/13839
Diffstat (limited to 'setup-disk.in')
-rw-r--r--setup-disk.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup-disk.in b/setup-disk.in
index dd0ed0d..1af717a 100644
--- a/setup-disk.in
+++ b/setup-disk.in
@@ -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