From 5e3069f3f9f4ca2f94cfa699b72c8f737a4bb9bf Mon Sep 17 00:00:00 2001 From: Trent Piepho Date: Wed, 9 Dec 2015 23:38:31 +0000 Subject: partitions/efi: Add partuuid to partition description In commit bc31d85c6e23d724664e76bcfc3b2eda778012a3 the partition UUID was added to the partition struct and thence to the cdev(s) for the partition. But just for DOS partitions. Do this for GPT aka EFI partitions too. Signed-off-by: Trent Piepho Signed-off-by: Sascha Hauer --- common/partitions/efi.c | 1 + 1 file changed, 1 insertion(+) (limited to 'common/partitions/efi.c') diff --git a/common/partitions/efi.c b/common/partitions/efi.c index 61abf00050..a9945dd9eb 100644 --- a/common/partitions/efi.c +++ b/common/partitions/efi.c @@ -457,6 +457,7 @@ static void efi_partition(void *buf, struct block_device *blk, pentry->size = le64_to_cpu(ptes[i].ending_lba) - pentry->first_sec; pentry->size++; part_set_efi_name(&ptes[i], pentry->name); + snprintf(pentry->partuuid, sizeof(pentry->partuuid), "%pUl", &ptes[i].unique_partition_guid); pd->used_entries++; } -- cgit v1.2.3