don't fail if no bootloader install path

This commit is contained in:
Bernhard Landauer 2017-01-21 03:12:46 +01:00
parent 2dc14dae8e
commit a2264bcc2b

View File

@ -240,7 +240,13 @@ def install_grub(efi_directory, fw_type):
efi_file_target[efi_bitness]])
else:
print("Bootloader: grub (bios)")
if libcalamares.globalstorage.value("bootLoader") is None:
return
boot_loader = libcalamares.globalstorage.value("bootLoader")
if boot_loader["installPath"] is None:
return
check_target_env_call([libcalamares.job.configuration["grubInstall"],
"--target=i386-pc",
"--recheck",