84b277
From 376c59b17a8d90b623533f639c2045276d1009d7 Mon Sep 17 00:00:00 2001
84b277
From: Lukas Nykryn <lnykryn@redhat.com>
84b277
Date: Wed, 24 Sep 2014 13:20:29 +0200
84b277
Subject: [PATCH] core: don't try to connect to d-bus after switchroot
84b277
84b277
rhel-only
84b277
84b277
Resolves: #1083300
84b277
---
84b277
 src/core/main.c | 2 +-
84b277
 1 file changed, 1 insertion(+), 1 deletion(-)
84b277
84b277
diff --git a/src/core/main.c b/src/core/main.c
84b277
index afd5f6f..d4bf8ba 100644
84b277
--- a/src/core/main.c
84b277
+++ b/src/core/main.c
84b277
@@ -1543,7 +1543,7 @@ int main(int argc, char *argv[]) {
84b277
         if (arg_running_as == SYSTEMD_SYSTEM)
84b277
                 bump_rlimit_nofile(&saved_rlimit_nofile);
84b277
 
84b277
-        r = manager_new(arg_running_as, !!serialization, &m);
84b277
+        r = manager_new(arg_running_as, !!serialization && !arg_switched_root, &m);
84b277
         if (r < 0) {
84b277
                 log_error("Failed to allocate manager object: %s", strerror(-r));
84b277
                 goto finish;