[bootloader] Fix typo's
This commit is contained in:
parent
aede7056f2
commit
9127b76e5f
@ -427,7 +427,7 @@ def efi_label(efi_directory):
|
|||||||
used within @p efi_directory.
|
used within @p efi_directory.
|
||||||
"""
|
"""
|
||||||
if "efiBootloaderId" in libcalamares.job.configuration:
|
if "efiBootloaderId" in libcalamares.job.configuration:
|
||||||
efi_bootloader_id = change_efi_suffix( efi_directory, calamares.job.configuration["efiBootloaderId"] )
|
efi_bootloader_id = change_efi_suffix( efi_directory, libcalamares.job.configuration["efiBootloaderId"] )
|
||||||
else:
|
else:
|
||||||
branding = libcalamares.globalstorage.value("branding")
|
branding = libcalamares.globalstorage.value("branding")
|
||||||
efi_bootloader_id = branding["bootloaderEntryName"]
|
efi_bootloader_id = branding["bootloaderEntryName"]
|
||||||
@ -563,6 +563,7 @@ def run_grub_install(fw_type, partitions, efi_directory):
|
|||||||
check_target_env_call(["sh", "-c", "echo ZPOOL_VDEV_NAME_PATH=1 >> /etc/environment"])
|
check_target_env_call(["sh", "-c", "echo ZPOOL_VDEV_NAME_PATH=1 >> /etc/environment"])
|
||||||
|
|
||||||
if fw_type == "efi":
|
if fw_type == "efi":
|
||||||
|
assert efi_directory is not None
|
||||||
efi_bootloader_id = efi_label(efi_directory)
|
efi_bootloader_id = efi_label(efi_directory)
|
||||||
efi_target, efi_grub_file, efi_boot_file = get_grub_efi_parameters()
|
efi_target, efi_grub_file, efi_boot_file = get_grub_efi_parameters()
|
||||||
|
|
||||||
@ -577,6 +578,7 @@ def run_grub_install(fw_type, partitions, efi_directory):
|
|||||||
"--bootloader-id=" + efi_bootloader_id,
|
"--bootloader-id=" + efi_bootloader_id,
|
||||||
"--force"])
|
"--force"])
|
||||||
else:
|
else:
|
||||||
|
assert efi_directory is None
|
||||||
if libcalamares.globalstorage.value("bootLoader") is None:
|
if libcalamares.globalstorage.value("bootLoader") is None:
|
||||||
return
|
return
|
||||||
|
|
||||||
@ -653,7 +655,7 @@ def install_grub(efi_directory, fw_type):
|
|||||||
shutil.copy2(efi_file_source, efi_file_target)
|
shutil.copy2(efi_file_source, efi_file_target)
|
||||||
else:
|
else:
|
||||||
libcalamares.utils.debug("Bootloader: grub (bios)")
|
libcalamares.utils.debug("Bootloader: grub (bios)")
|
||||||
run_grub_install(fw_type, partitions)
|
run_grub_install(fw_type, partitions, None)
|
||||||
|
|
||||||
run_grub_mkconfig(partitions, libcalamares.job.configuration["grubCfg"])
|
run_grub_mkconfig(partitions, libcalamares.job.configuration["grubCfg"])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user