diff options
| author | nl6720 <nl6720@gmail.com> | 2020-10-04 11:28:53 +0300 |
|---|---|---|
| committer | nl6720 <nl6720@gmail.com> | 2020-10-07 11:42:08 +0300 |
| commit | bfab360529cb9d5e56712f86caad5003f94bc83f (patch) | |
| tree | 364bfb8b676dc89e98e001d5bc9b038a1ea76eb8 | |
| parent | f45fc29fe09a98c46e85da56f1709be438d4c33f (diff) | |
| download | archiso-bfab360529cb9d5e56712f86caad5003f94bc83f.tar.gz archiso-bfab360529cb9d5e56712f86caad5003f94bc83f.tar.bz2 | |
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.
| -rwxr-xr-x | archiso/mkarchiso | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/archiso/mkarchiso b/archiso/mkarchiso index 6153c4e..b7d8038 100755 --- a/archiso/mkarchiso +++ b/archiso/mkarchiso @@ -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." } |
