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`.
This commit is contained in:
committed by
Daan De Meyer
parent
1224e5d195
commit
7208a74a2b
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user