chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
main: introduce $SYSTEMD_SKIP_API_MOUNTS to disable mounting of API FS
[elogind.git]
/
src
/
main.c
diff --git
a/src/main.c
b/src/main.c
index 3124b7644e7bb8cbe9417b18e32f2962f5867514..8717b8a968085693222e924c45ddba6391af133c 100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-849,7
+849,7
@@
int main(int argc, char *argv[]) {
/* Mount /proc, /sys and friends, so that /proc/cmdline and
* /proc/$PID/fd is available. */
- if (geteuid() == 0)
+ if (geteuid() == 0
&& !getenv("SYSTEMD_SKIP_API_MOUNTS")
)
if (mount_setup() < 0)
goto finish;