boot-entry: introduce boot_entry_token_ensure_at()

This commit is contained in:
Yu Watanabe
2023-04-12 19:47:34 +09:00
parent fda18ce2b6
commit d2d969bb45
2 changed files with 50 additions and 21 deletions
+7
View File
@@ -22,5 +22,12 @@ int boot_entry_token_ensure(
bool machine_id_is_random,
BootEntryTokenType *type, /* input and output */
char **token); /* output, but do not pass uninitialized value. */
int boot_entry_token_ensure_at(
int rfd,
const char *etc_kernel,
sd_id128_t machine_id,
bool machine_id_is_random,
BootEntryTokenType *type,
char **token);
int parse_boot_entry_token_type(const char *s, BootEntryTokenType *type, char **token);