diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-12-15 17:17:43 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-12-21 19:09:30 +0100 |
commit | be30ad41ffd796ba40a5026b4963c17f04cc334d (patch) | |
tree | 56f7744a8d8fc0d3cf6bfdcc1223199f5cbfc94a /src/dissect | |
parent | 01af8c019a33eb3882f17e3b65e30c4a924fed2a (diff) |
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.
Diffstat (limited to 'src/dissect')
-rw-r--r-- | src/dissect/dissect.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |