[bootloader] Simplify finding the ESP
This commit is contained in:
parent
df37c51c1e
commit
333f0d9215
@ -440,15 +440,9 @@ def run():
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
partitions = libcalamares.globalstorage.value("partitions")
|
partitions = libcalamares.globalstorage.value("partitions")
|
||||||
|
|
||||||
if fw_type == "efi":
|
if fw_type == "efi":
|
||||||
esp_found = False
|
efi_system_partition = libcalamares.globalstorage.value("efiSystemPartition")
|
||||||
|
esp_found = [ p for p in partitions if p["mountPoint"] == efi_system_partition ]
|
||||||
for partition in partitions:
|
|
||||||
if (partition["mountPoint"] ==
|
|
||||||
libcalamares.globalstorage.value("efiSystemPartition")):
|
|
||||||
esp_found = True
|
|
||||||
|
|
||||||
if not esp_found:
|
if not esp_found:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user