bootspec: don't log in boot_entries_load_config_auto() about no ESP

Let's do it in the caller instead. That way, logind can stay silent
about it.

Fixes: #11950
This commit is contained in:
Lennart Poettering
2019-03-13 17:06:24 +01:00
committed by Zbigniew Jędrzejewski-Szmek
parent 0ae4456c93
commit cc5957dca0
3 changed files with 5 additions and 5 deletions
+2
View File
@@ -3591,6 +3591,8 @@ static int load_kexec_kernel(void) {
return log_error_errno(errno, KEXEC" is not available: %m");
r = boot_entries_load_config_auto(NULL, NULL, &config);
if (r == -ENOKEY) /* The call doesn't log about ENOKEY, let's do so here. */
return log_error_errno(r, "Cannot find the ESP partition mount point.");
if (r < 0)
return r;