Skip to content
GitLab
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
f2a081f9
Commit
f2a081f9
authored
Nov 04, 2022
by
Natanael Copa
Browse files
setup-disk: fix /boot size for UEFI and encryption
Currently, /boot becomes 34 MB, which is too small. Fixes
#10536
parent
2eccbac1
Pipeline
#142679
passed with stage
in 20 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
setup-disk.in
View file @
f2a081f9
...
...
@@ -1601,7 +1601,8 @@ if [ -z "$SWAP_SIZE" ]; then
SWAP_SIZE
=
$(
find_swap_size
$diskdevs
)
fi
if
[
-n
"
$USE_EFI
"
]
&&
[
-z
"
$BOOT_SIZE
"
]
;
then
# reduce size of ESP partition
if
[
-n
"
$USE_EFI
"
]
&&
[
-z
"
$USE_CRYPT
"
]
&&
[
-z
"
$BOOT_SIZE
"
]
;
then
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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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