mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-26 10:52:57 +02:00
installer: Intialize part_boot_efi_idx
This variable was not initialized on systems where EFI was not in use. Therefore the generated parted command line was not valid and caused the installation to abort. Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -547,8 +547,10 @@ static int hw_calculate_partition_table(struct hw* hw, struct hw_destination* de
|
||||
|
||||
snprintf(dest->part_boot_efi, sizeof(dest->part_boot_efi),
|
||||
"%s%d", path, part_idx++);
|
||||
} else
|
||||
} else {
|
||||
*dest->part_boot_efi = '\0';
|
||||
dest->part_boot_efi_idx = 0;
|
||||
}
|
||||
|
||||
if (dest->size_swap > 0)
|
||||
snprintf(dest->part_swap, sizeof(dest->part_swap), "%s%d", path, part_idx++);
|
||||
|
||||
Reference in New Issue
Block a user