From a4e49a2d41413a8a471399fdb35568c1b1cd3130 Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Thu, 31 Jul 2014 15:10:31 -0400 Subject: ubuntu-init-switch: fix for determining if systemd /run/systemd/ seems to exist even if systemd is not the init system. but /run/systemd/system/ only exists if it has been used as init. --- cloudinit/config/cc_ubuntu_init_switch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- cgit v1.2.3