summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2022-11-03 20:51:40 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2022-11-11 13:54:56 +0100
commit512bc9745583c5c642cf40cec4aaf033dc564238 (patch)
tree82db1ba1a731e02c5c367a8f0c3b984a47771903
parent1ed5992ac80b7878ebbfa10cde3702dfd61b021b (diff)
downloadalpine-conf-512bc9745583c5c642cf40cec4aaf033dc564238.zip
setup-disk: default block size to 512
0 is not a safe fallback for a block size.
-rw-r--r--setup-disk.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup-disk.in b/setup-disk.in
index 34def75..5f7d799 100644
--- a/setup-disk.in
+++ b/setup-disk.in
@@ -1613,7 +1613,7 @@ if [ -n "$USE_EFI" ] && [ -z "$USE_CRYPT" ] && [ -z "$BOOT_SIZE" ]; then
# calculate minimal FAT32 size
# for block size 512 minimal size is 32MB
# for block size 4096, minimal size is 260M
- BOOT_SIZE=$(( ${blocksize:-0} * 64 / 1000 + 2 ))
+ BOOT_SIZE=$(( ${blocksize:-512} * 64 / 1000 + 2 ))
fi
set -- $diskdevs