]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bootspec: improve documentation around id/file BootEntry fields 41690/head
authorLennart Poettering <lennart@amutable.com>
Wed, 15 Apr 2026 14:19:43 +0000 (16:19 +0200)
committerLennart Poettering <lennart@amutable.com>
Sat, 18 Apr 2026 07:51:12 +0000 (09:51 +0200)
src/shared/bootspec.h

index f325dcae251540cfeea30eaa6e49199b5e4c9bdf..951a81f08c6c49ae932fb0da165c105bf7306277 100644 (file)
@@ -34,11 +34,11 @@ typedef struct BootEntry {
         BootEntryType type;
         BootEntrySource source;
         bool reported_by_loader;
-        char *id;       /* This is the file basename (including extension!) */
-        char *id_old;   /* Old-style ID, for deduplication purposes. */
-        char *id_without_profile; /* id without profile suffixed */
-        char *path;     /* This is the full path to the drop-in file */
-        char *root;     /* The root path in which the drop-in was found, i.e. to which 'kernel', 'efi' and 'initrd' are relative */
+        char *id;                 /* This is the file basename (including extension, but with tries counters stripped) */
+        char *id_old;             /* Old-style ID, for deduplication purposes (for type1: same as the regular id, but with extension stripped too). */
+        char *id_without_profile; /* ID without profile suffixed */
+        char *path;               /* This is the full path to the drop-in file (i.e. prefixed with 'root' field below) */
+        char *root;               /* The root path in which the drop-in was found, i.e. to which 'kernel', 'efi' and 'initrd' are relative */
         char *title;
         char *show_title;
         char *sort_key;