diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2022-05-25 21:02:03 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2022-05-25 21:02:03 +0200 |
commit | fa32f6c5f40477d03d5d09a83add56609edef880 (patch) | |
tree | bda298c01baad6b5b21e537e1f29ddb921eb3be1 /setup-disk.in | |
parent | 8c9ea9d2c2e13435ee69ee4103977cbf638346c4 (diff) | |
download | alpine-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.in | 2 |
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 |