Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Tom Yan
archiso
Commits
bfab3605
Verified
Commit
bfab3605
authored
Oct 04, 2020
by
nl6720
Browse files
Ensure that _make_boot_uefi-x64.systemd-boot.esp can be re-run if it fails
Remove efiboot.img if it exists so that mkfs.fat does not fail.
parent
f45fc29f
Changes
1
Hide whitespace changes
Inline
Side-by-side
archiso/mkarchiso
View file @
bfab3605
...
...
@@ -561,6 +561,7 @@ _make_boot_uefi-x64.systemd-boot.esp() {
)
"
# The FAT image must be created with mkfs.fat not mformat, as some systems have issues with mformat made images:
# https://lists.gnu.org/archive/html/grub-devel/2019-04/msg00099.html
[[
-e
"
${
isofs_dir
}
/EFI/archiso/efiboot.img"
]]
&&
rm
-f
--
"
${
isofs_dir
}
/EFI/archiso/efiboot.img"
_msg_info
"Creating FAT image of size:
${
efiboot_imgsize
}
KiB..."
mkfs.fat
-C
-n
ARCHISO_EFI
"
${
isofs_dir
}
/EFI/archiso/efiboot.img"
"
$efiboot_imgsize
"
...
...
@@ -584,7 +585,7 @@ _make_boot_uefi-x64.systemd-boot.esp() {
fi
# Copy kernel and initramfs
_run_once
_make_boot_on_fat
_make_boot_on_fat
_msg_info
"Done! systemd-boot set up for UEFI booting successfully."
}
...
...
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