Make EFI/BIOS hybrid boot optional by ignoring error

This commit is contained in:
Fierelier 2023-01-28 03:26:16 +01:00
parent 8f794f5f84
commit cfd568f287

View File

@ -323,7 +323,7 @@ def main():
mbrInstall = False
chroot(ipth(),["grub-install","--target=i386-efi","--uefi-secure-boot","--efi-directory=/boot/efi","--boot-directory=/boot",grubDisk])
chroot(ipth(),["grub-install","--target=x86_64-efi","--uefi-secure-boot","--efi-directory=/boot/efi","--boot-directory=/boot",grubDisk])
chroot(ipth(),["grub-install","--target=i386-pc","--boot-directory=/boot",grubDisk])
nerr(chroot,ipth(),["grub-install","--target=i386-pc","--boot-directory=/boot",grubDisk])
chroot(ipth(),["update-grub"])
print("Unmounting ESP ...")
call(["umount","-l",ipth("boot/efi")])