mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 00:47:10 +09:00
boot: downgrade log messages about invalid timeouts
We correctly handle invalid timeouts being stored in EFI variables, but because we deal with this gracefully we should downgrade the log level to warning, and say "ignoring" in the log message. Inspired by #34084
This commit is contained in:
@@ -1479,7 +1479,7 @@ static void config_load_defaults(Config *config, EFI_FILE *root_dir) {
|
||||
if (err == EFI_SUCCESS)
|
||||
config->timeout_sec = config->timeout_sec_efivar;
|
||||
else if (err != EFI_NOT_FOUND)
|
||||
log_error_status(err, "Error reading LoaderConfigTimeout EFI variable: %m");
|
||||
log_warning_status(err, "Error reading LoaderConfigTimeout EFI variable, ignoring: %m");
|
||||
|
||||
err = efivar_get_timeout(u"LoaderConfigTimeoutOneShot", &config->timeout_sec);
|
||||
if (err == EFI_SUCCESS) {
|
||||
@@ -1488,7 +1488,7 @@ static void config_load_defaults(Config *config, EFI_FILE *root_dir) {
|
||||
|
||||
config->force_menu = true; /* force the menu when this is set */
|
||||
} else if (err != EFI_NOT_FOUND)
|
||||
log_error_status(err, "Error reading LoaderConfigTimeoutOneShot EFI variable: %m");
|
||||
log_warning_status(err, "Error reading LoaderConfigTimeoutOneShot EFI variable, ignoring: %m");
|
||||
|
||||
uint64_t value;
|
||||
err = efivar_get_uint64_str16(MAKE_GUID_PTR(LOADER), u"LoaderConfigConsoleMode", &value);
|
||||
|
||||
Reference in New Issue
Block a user