[bootloader] Allow skipping the EFI fallback

This commit is contained in:
Adriaan de Groot 2018-01-29 22:55:07 +01:00
parent aed904e3b4
commit 78108c5cda
2 changed files with 15 additions and 6 deletions

View file

@ -269,13 +269,14 @@ def install_grub(efi_directory, fw_type):
os.makedirs(install_efi_boot_directory)
# Workaround for some UEFI firmwares
efi_file_source = os.path.join(install_efi_directory_firmware,
efi_bootloader_id,
efi_grub_file)
efi_file_target = os.path.join(install_efi_boot_directory,
efi_boot_file)
if libcalamares.job.configuration.get("installEFIFallback", True):
efi_file_source = os.path.join(install_efi_directory_firmware,
efi_bootloader_id,
efi_grub_file)
efi_file_target = os.path.join(install_efi_boot_directory,
efi_boot_file)
shutil.copy2(efi_file_source, efi_file_target)
shutil.copy2(efi_file_source, efi_file_target)
else:
print("Bootloader: grub (bios)")
if libcalamares.globalstorage.value("bootLoader") is None: