From: Duncan Overbruck Date: Fri, 13 Mar 2026 21:35:42 +0000 (+0100) Subject: boot-entry: add 'auto' keyword to parse_boot_entry_token_type X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7208a74a2b7eee1b2465793fb3b2642c888fe0ce;p=thirdparty%2Fsystemd.git boot-entry: add 'auto' keyword to parse_boot_entry_token_type Add the auto keyword as documented in the help message and man pages of `kernel-install`, `bootctl` and `systemd-pcrlock`. --- diff --git a/src/shared/boot-entry.c b/src/shared/boot-entry.c index 0f1d8090247..c9e966ba04e 100644 --- a/src/shared/boot-entry.c +++ b/src/shared/boot-entry.c @@ -253,6 +253,12 @@ int parse_boot_entry_token_type(const char *s, BootEntryTokenType *type, char ** * Hence, do not pass in uninitialized pointers. */ + if (streq(s, "auto")) { + *type = BOOT_ENTRY_TOKEN_AUTO; + *token = mfree(*token); + return 0; + } + if (streq(s, "machine-id")) { *type = BOOT_ENTRY_TOKEN_MACHINE_ID; *token = mfree(*token);