From 7208a74a2b7eee1b2465793fb3b2642c888fe0ce Mon Sep 17 00:00:00 2001 From: Duncan Overbruck Date: Fri, 13 Mar 2026 22:35:42 +0100 Subject: [PATCH] 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`. --- src/shared/boot-entry.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/shared/boot-entry.c b/src/shared/boot-entry.c index 0f1d809024..c9e966ba04 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);