summaryrefslogtreecommitdiffstats
path: root/common/partitions/efi.c
diff options
context:
space:
mode:
authorTrent Piepho <tpiepho@kymetacorp.com>2015-12-09 23:38:31 +0000
committerSascha Hauer <s.hauer@pengutronix.de>2016-01-08 08:30:55 +0100
commit5e3069f3f9f4ca2f94cfa699b72c8f737a4bb9bf (patch)
treea32df255f875144bd1aea8f331583c65b5eda96d /common/partitions/efi.c
parent51e97d11dc81e12c2d8bddc1e79f6d40de49f3de (diff)
downloadbarebox-5e3069f3f9f4ca2f94cfa699b72c8f737a4bb9bf.tar.gz
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 <tpiepho@kymetacorp.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/partitions/efi.c')
-rw-r--r--common/partitions/efi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/partitions/efi.c b/common/partitions/efi.c
index 61abf00..a9945dd 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++;
}