@@ -, +, @@ --- plugins/gpt/gptsegmgr.c | 2 ++ plugins/gpt/options.c | 1 + 2 files changed, 3 insertions(+) --- a/plugins/gpt/gptsegmgr.c +++ a/plugins/gpt/gptsegmgr.c @@ -1359,6 +1359,7 @@ static int GetCreateOptions( option_array_t * options, case SEG_CREATE_OPTION_TYPE_INDEX: if (strcmp(options->option[i].value.s, BIOS_BOOT_PARTITION_STRING) == 0) *ptype = bios_boot_partition; + else if (strcmp(options->option[i].value.s, EFI_SYSTEM_PARTITION_STRING) == 0) *ptype = efi_system_partition; break; default: @@ -1377,6 +1378,7 @@ static int GetCreateOptions( option_array_t * options, } else if (strcmp(options->option[i].name, SEG_CREATE_OPTION_TYPE_NAME) == 0) { if (strcmp(options->option[i].value.s, BIOS_BOOT_PARTITION_STRING) == 0) *ptype = bios_boot_partition; + else if (strcmp(options->option[i].value.s, EFI_SYSTEM_PARTITION_STRING) == 0) *ptype = efi_system_partition; } } --- a/plugins/gpt/options.c +++ a/plugins/gpt/options.c @@ -43,6 +43,7 @@ typedef struct gpt_partition_info_s { static const gpt_partition_info_t gpt_partition_info[] = { + { EFI_SYSTEM_PARTITION_STRING, 1}, { BASIC_DATA_PARTITION_STRING, 2}, // {"legacy mbr", 3}, // {"swap", 4}, --