]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bootspec: add comment explaining verify_esp() return codes
authorLennart Poettering <lennart@poettering.net>
Tue, 29 Jan 2019 11:01:36 +0000 (12:01 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 1 Mar 2019 11:41:32 +0000 (12:41 +0100)
src/shared/bootspec.c

index d0ded116109ee15ce2d933cd00c54a65f3826fcd..69bc0d5c60d48604aef84f92b4c894f600cf051c 100644 (file)
@@ -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