Skip to content
Snippets Groups Projects
Commit 965570af authored by Teo Mrnjavac's avatar Teo Mrnjavac
Browse files

Skip installing EFI bootloader if no ESP with mount point is found.

parent 83d440f3
No related branches found
No related tags found
No related merge requests found
......@@ -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)])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment