sd-boot: Add support to boot last selected entry

Fixes: #18994
This commit is contained in:
Jan Janssen
2021-10-29 13:57:24 +02:00
parent 0c674ce5f2
commit ee4fd9cbd4
4 changed files with 54 additions and 8 deletions
+1 -1
View File
@@ -1834,7 +1834,7 @@ static int parse_loader_entry_target_arg(const char *arg1, char16_t **ret_target
if (r < 0)
return log_error_errno(r, "Failed to get EFI variable 'LoaderEntryDefault': %m");
} else if (arg1[0] == '@')
} else if (arg1[0] == '@' && !streq(arg1, "@saved"))
return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Unsupported special entry identifier: %s", arg1);
else {
encoded = utf8_to_utf16(arg1, strlen(arg1));