main: introduce $SYSTEMD_SKIP_API_MOUNTS to disable mounting of API FS

This commit is contained in:
Lennart Poettering 2010-07-09 00:03:09 +02:00
parent 085b94eec3
commit ca326f6f2d

View file

@ -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;