From ca326f6f2d02b36b3d34c0b2a8552b8be310bed6 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 9 Jul 2010 00:03:09 +0200 Subject: [PATCH] main: introduce $SYSTEMD_SKIP_API_MOUNTS to disable mounting of API FS --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 3124b764..8717b8a9 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; -- 2.39.5