summaryrefslogtreecommitdiff
path: root/cloudinit
diff options
context:
space:
mode:
Diffstat (limited to 'cloudinit')
-rw-r--r--cloudinit/config/cc_ubuntu_init_switch.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/config/cc_ubuntu_init_switch.py b/cloudinit/config/cc_ubuntu_init_switch.py
index 485c46a4..58a5549e 100644
--- a/cloudinit/config/cc_ubuntu_init_switch.py
+++ b/cloudinit/config/cc_ubuntu_init_switch.py
@@ -111,7 +111,7 @@ def handle(name, cfg, cloud, log, args):
log.warn("%s: target set to %s, expected one of: %s",
name, target, str(supported))
- if os.path.exists("/run/systemd"):
+ if os.path.exists("/run/systemd/system"):
current = "systemd"
else:
current = "upstart"