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
+1 -3
View File
@@ -712,9 +712,7 @@ int boot_entries_load_config_auto(
}
r = find_esp_and_warn(override_esp_path, false, &esp_where, NULL, NULL, NULL, NULL);
if (r == -ENOKEY) /* find_esp_and_warn() doesn't warn about this case */
return log_error_errno(r, "Cannot find the ESP partition mount point.");
if (r < 0) /* But it logs about all these cases, hence don't log here again */
if (r < 0) /* we don't log about ENOKEY here, but propagate it, leaving it to the caller to log */
return r;
r = find_xbootldr_and_warn(override_xbootldr_path, false, &xbootldr_where, NULL);