diff options
author | Lennart Poettering <lennart@poettering.net> | 2022-10-20 23:14:28 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2022-11-10 16:00:59 +0100 |
commit | b387778c5b8a1e0d1b3f957f0c5866defbfbe4d4 (patch) | |
tree | bbb0c3d03498ea77a24c298ec4d0439fa61403d4 /src/shared/dissect-image.h | |
parent | 9bc4156cdf75dffdb9b5217e353921cd4a7660ae (diff) | |
download | systemd-b387778c5b8a1e0d1b3f957f0c5866defbfbe4d4.tar.gz |
dissect: also parse out the top-level GPT table uuid and expose this as image UUID
systemd-repart generates this in a suitably stable fashion, hence let's
actually use it as an identifier for the image. As a first step parse
it, and show it.
Diffstat (limited to 'src/shared/dissect-image.h')
-rw-r--r-- | src/shared/dissect-image.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/dissect-image.h b/src/shared/dissect-image.h index 46675d22ab..ccdc4d6f35 100644 --- a/src/shared/dissect-image.h +++ b/src/shared/dissect-image.h @@ -229,6 +229,7 @@ struct DissectedImage { /* Meta information extracted from /etc/os-release and similar */ char *image_name; + sd_id128_t image_uuid; char *hostname; sd_id128_t machine_id; char **machine_info; |