projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7afbd6
)
bootspec: add comment explaining verify_esp() return codes
author
Lennart Poettering
<lennart@poettering.net>
Tue, 29 Jan 2019 11:01:36 +0000
(12:01 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Fri, 1 Mar 2019 11:41:32 +0000
(12:41 +0100)
src/shared/bootspec.c
patch
|
blob
|
history
diff --git
a/src/shared/bootspec.c
b/src/shared/bootspec.c
index d0ded116109ee15ce2d933cd00c54a65f3826fcd..69bc0d5c60d48604aef84f92b4c894f600cf051c 100644
(file)
--- 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