]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
dissect-image: move comment to right place 30453/head
authorLennart Poettering <lennart@poettering.net>
Mon, 4 Dec 2023 17:28:45 +0000 (18:28 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 12 Dec 2023 15:20:10 +0000 (16:20 +0100)
The image name is extracted from the image path originally passed in,
i.e. not the contents of the image. And the image UUID is directly
retrieved from the partition table, hence also not from the contents.
Let's hence move the comment to separate out the stuff extract from the
file systems (and thus only available when mounting/with privs/with
block devices) from the data available without any of that.

src/shared/dissect-image.h

index 979fd384fe665d2b0fe30673365d5de5bc2e39b6..15c0bf7219430cd69dc55696a63cf1eaeb0bcd6e 100644 (file)
@@ -103,9 +103,10 @@ struct DissectedImage {
 
         uint32_t sector_size;
 
-        /* Meta information extracted from /etc/os-release and similar */
         char *image_name;
         sd_id128_t image_uuid;
+
+        /* Meta information extracted from /etc/os-release and similar */
         char *hostname;
         sd_id128_t machine_id;
         char **machine_info;