mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-30 10:55:37 -04: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]
|
device = boot_device[:-1]
|
||||||
|
|
||||||
if not boot_p or not device:
|
if not boot_p or not device:
|
||||||
return ("EFI directory \"{!s}\" not found!",
|
return ("EFI directory \"{!s}\" not found!".format(efi_directory),
|
||||||
"Boot partition: \"{!s}\"",
|
"Boot partition: \"{!s}\"".format(boot_p),
|
||||||
"Boot device: \"{!s}\"".format(efi_directory, boot_p, device))
|
"Boot device: \"{!s}\"".format(device))
|
||||||
else:
|
else:
|
||||||
print("EFI directory: \"{!s}\"".format(efi_directory))
|
print("EFI directory: \"{!s}\"".format(efi_directory))
|
||||||
print("Boot partition: \"{!s}\"".format(boot_p))
|
print("Boot partition: \"{!s}\"".format(boot_p))
|
||||||
print("Boot device: \"{!s}\"".format(device))
|
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")
|
print("Set 'EF00' flag")
|
||||||
subprocess.call(["sgdisk", "--typecode={!s}:EF00".format(boot_p), "{!s}".format(device)])
|
subprocess.call(["sgdisk", "--typecode={!s}:EF00".format(boot_p), "{!s}".format(device)])
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue