chiark / gitweb /
main: introduce $SYSTEMD_SKIP_API_MOUNTS to disable mounting of API FS
authorLennart Poettering <lennart@poettering.net>
Thu, 8 Jul 2010 22:03:09 +0000 (00:03 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 8 Jul 2010 22:03:09 +0000 (00:03 +0200)
src/main.c

index 3124b76..8717b8a 100644 (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;