mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 19:05:46 -05:00
Skip installing EFI bootloader if no ESP with mount point is found.
This commit is contained in:
parent
83d440f37e
commit
965570af96
1 changed files with 8 additions and 3 deletions
|
@ -216,13 +216,18 @@ def prepare_bootloader(fw_type):
|
|||
device = boot_device[:-1]
|
||||
|
||||
if not boot_p or not device:
|
||||
return ("EFI directory \"{!s}\" not found!",
|
||||
"Boot partition: \"{!s}\"",
|
||||
"Boot device: \"{!s}\"".format(efi_directory, boot_p, device))
|
||||
return ("EFI directory \"{!s}\" not found!".format(efi_directory),
|
||||
"Boot partition: \"{!s}\"".format(boot_p),
|
||||
"Boot device: \"{!s}\"".format(device))
|
||||
else:
|
||||
print("EFI directory: \"{!s}\"".format(efi_directory))
|
||||
print("Boot partition: \"{!s}\"".format(boot_p))
|
||||
print("Boot device: \"{!s}\"".format(device))
|
||||
|
||||
if not boot_device:
|
||||
print("WARNING: no EFI system partition or EFI system partition mount point not set.")
|
||||
print(" >>> no EFI bootloader will be installed <<<")
|
||||
return None
|
||||
print("Set 'EF00' flag")
|
||||
subprocess.call(["sgdisk", "--typecode={!s}:EF00".format(boot_p), "{!s}".format(device)])
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue