[systemd-commits] src/main.c

Lennart Poettering lennart at kemper.freedesktop.org
Thu Jul 8 15:03:21 PDT 2010


 src/main.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ca326f6f2d02b36b3d34c0b2a8552b8be310bed6
Author: Lennart Poettering <lennart at poettering.net>
Date:   Fri Jul 9 00:03:09 2010 +0200

    main: introduce $SYSTEMD_SKIP_API_MOUNTS to disable mounting of API FS

diff --git a/src/main.c b/src/main.c
index 3124b76..8717b8a 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;
 


More information about the systemd-commits mailing list