diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2022-11-03 20:51:40 +0100 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2022-11-11 13:54:56 +0100 |
commit | 512bc9745583c5c642cf40cec4aaf033dc564238 (patch) | |
tree | 82db1ba1a731e02c5c367a8f0c3b984a47771903 | |
parent | 1ed5992ac80b7878ebbfa10cde3702dfd61b021b (diff) | |
download | alpine-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.in | 2 |
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 |