From 58e840bd96d6f7e34d332d8b18c95857ced5ca1d Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 11 Dec 2018 20:43:24 +0000 Subject: [PATCH 1/1] 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 --- src/installer/hw.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/installer/hw.c b/src/installer/hw.c index b329db545b..71a1f1cce3 100644 --- a/src/installer/hw.c +++ b/src/installer/hw.c @@ -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++); -- 2.39.2