From be30ad41ffd796ba40a5026b4963c17f04cc334d Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 15 Dec 2016 17:17:43 +0100 Subject: dissect: return the GPT partition UUID, too This is useful as we can match up the EFI UUID with the one the firmware supposedly used. --- src/dissect/dissect.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/dissect/dissect.c') diff --git a/src/dissect/dissect.c b/src/dissect/dissect.c index aa06894037..78ec88fa35 100644 --- a/src/dissect/dissect.c +++ b/src/dissect/dissect.c @@ -221,6 +221,9 @@ int main(int argc, char *argv[]) { p->rw ? "writable" : "read-only", partition_designator_to_string(i)); + if (!sd_id128_is_null(p->uuid)) + printf(" (UUID " SD_ID128_FORMAT_STR ")", SD_ID128_FORMAT_VAL(p->uuid)); + if (p->fstype) printf(" of type %s", p->fstype); -- cgit v1.2.3-54-g00ecf