]> err.no Git - systemd/commitdiff
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 3124b7644e7bb8cbe9417b18e32f2962f5867514..8717b8a968085693222e924c45ddba6391af133c 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;