[bootloader] Fix typo's

- There's a general "partititon" typo, but the variable
   name also is misused.
This commit is contained in:
Adriaan de Groot 2019-05-10 18:26:59 -04:00
parent 23ae6b77bd
commit e972c175d8

View File

@ -373,17 +373,17 @@ def install_secureboot(efi_directory):
efi_drive_partition = efi_drive.replace("(","").replace(")","").split(",")[1]
# Get the first run of digits from the partition
efi_partititon_number = None
efi_partition_number = None
c = 0
start = None
while c < len(efi_drive_partition):
if efi_drive_partition[c].isdigit() and start is None:
start = c
if not efi_drive_partition[c].isdigit() and start is not None:
efi_drive_number = efi_drive_partition[start:c]
efi_partition_number = efi_drive_partition[start:c]
break
c += 1
if efi_partititon_number is None:
if efi_partition_number is None:
raise ValueError("No partition number found for %s" % install_efi_directory)
subprocess.call([
@ -392,7 +392,7 @@ def install_secureboot(efi_directory):
"-w",
"-L", efi_bootloader_id,
"-d", efi_disk,
"-p", efi_partititon_number,
"-p", efi_partition_number,
"-l", install_efi_directory + "/" + install_efi_bin])