From 222c395fbb5ec89f5a39ca42404b8708d9c0bb40 Mon Sep 17 00:00:00 2001 From: Amin Shayan Date: Sun, 10 Jul 2016 00:07:34 +0430 Subject: [PATCH] modify sysvinit if condition If ceph packages aren't installed on the host with systemd preinstalled, script will return sysvinit instead of systemd which is invalid. --- ceph_deploy/hosts/centos/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ceph_deploy/hosts/centos/__init__.py b/ceph_deploy/hosts/centos/__init__.py index 2b835e3..61b3b90 100644 --- a/ceph_deploy/hosts/centos/__init__.py +++ b/ceph_deploy/hosts/centos/__init__.py @@ -21,7 +21,7 @@ def choose_init(module): if module.normalized_release.int_major < 7: return 'sysvinit' - if not module.conn.remote_module.path_exists("/usr/lib/systemd/system/ceph.target"): + if not module.conn.remote_module.path_exists("/usr/lib/systemd"): return 'sysvinit' return 'systemd' -- 2.47.3