From: Lennart Poettering Date: Tue, 29 Jan 2019 11:01:36 +0000 (+0100) Subject: bootspec: add comment explaining verify_esp() return codes X-Git-Tag: v242-rc1~218^2~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23953a3ef85423fa91da5e5e03687583b60a82c2;p=thirdparty%2Fsystemd.git bootspec: add comment explaining verify_esp() return codes --- diff --git a/src/shared/bootspec.c b/src/shared/bootspec.c index d0ded116109..69bc0d5c60d 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