From 23953a3ef85423fa91da5e5e03687583b60a82c2 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 29 Jan 2019 12:01:36 +0100 Subject: [PATCH] bootspec: add comment explaining verify_esp() return codes --- src/shared/bootspec.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/shared/bootspec.c b/src/shared/bootspec.c index d0ded11610..69bc0d5c60 100644 --- a/src/shared/bootspec.c +++ b/src/shared/bootspec.c @@ -444,6 +444,13 @@ static int verify_esp( assert(p); + /* This logs about all errors, except: + * + * -ENOENT → if 'searching' is set, and the dir doesn't exist + * -EADDRNOTAVAIL → if 'searching' is set, and the dir doesn't look like an ESP + * -EACESS → if 'unprivileged_mode' is set, and we have trouble acessing the thing + */ + relax_checks = getenv_bool("SYSTEMD_RELAX_ESP_CHECKS") > 0; /* Non-root user can only check the status, so if an error occured in the following, it does not cause any