From bcaee84ee84a13cb1024672197d744aba0ddbcc6 Mon Sep 17 00:00:00 2001 From: Timur Aitov Date: Fri, 16 Nov 2012 16:53:32 +0400 Subject: [PATCH 1/2] add EFI_SYSTEM_PARTITION to type list --- plugins/gpt/gptsegmgr.c | 2 ++ plugins/gpt/options.c | 1 + 2 files changed, 3 insertions(+) diff --git a/plugins/gpt/gptsegmgr.c b/plugins/gpt/gptsegmgr.c index 9ba430d..bbe3e1c 100644 --- a/plugins/gpt/gptsegmgr.c +++ b/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; } } diff --git a/plugins/gpt/options.c b/plugins/gpt/options.c index 39330cb..3f6b747 100644 --- a/plugins/gpt/options.c +++ b/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}, -- 1.7.12.4