diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-07-09 00:03:09 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-07-09 00:03:09 +0200 |
commit | ca326f6f2d02b36b3d34c0b2a8552b8be310bed6 (patch) | |
tree | 3f42354d32faaaf8d70a378182a24b1851247905 /src | |
parent | 085b94eec37695a395c5edd5bb1e320ba12d2d1a (diff) |
main: introduce $SYSTEMD_SKIP_API_MOUNTS to disable mounting of API FS
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c index 3124b7644e..8717b8a968 100644 --- 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; |