Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
alpine
alpine-conf
Commits
fa32f6c5
Commit
fa32f6c5
authored
May 25, 2022
by
Natanael Copa
Browse files
setup-disk: use logical_block_size to calculate ESP size
fixes
aports#13839
parent
8c9ea9d2
Pipeline
#123485
passed with stage
in 38 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
setup-disk.in
View file @
fa32f6c5
...
...
@@ -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/
phys
ical_block_size:g'
)
|
sort
-n
|
tail
-n
1
)
blocksize
=
$(
cat
$(
echo
$diskdevs
|
sed
-E
-e
's:/dev/([^ ]+):/sys/block/\1/queue/
log
ical_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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment