summaryrefslogtreecommitdiff
path: root/src/shared/dissect-image.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2022-10-20 23:14:28 +0200
committerLennart Poettering <lennart@poettering.net>2022-11-10 16:00:59 +0100
commitb387778c5b8a1e0d1b3f957f0c5866defbfbe4d4 (patch)
treebbb0c3d03498ea77a24c298ec4d0439fa61403d4 /src/shared/dissect-image.h
parent9bc4156cdf75dffdb9b5217e353921cd4a7660ae (diff)
downloadsystemd-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.h1
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;