mcst-linux-kernel/patches-2024.06.26/python3-ceph-deploy-2.1.0/0003-check-systemd-availabi...

18 lines
577 B
Diff

Link: https://github.com/ceph/ceph-deploy/pull/514
Subject: check if systemd is available for ceph-volume
Bug: 125191
Tags: common
diff -rupN a/ceph_deploy/osd.py b/ceph_deploy/osd.py
--- a/ceph_deploy/osd.py 2021-09-09 17:14:00.508550339 +0300
+++ b/ceph_deploy/osd.py 2021-09-09 17:15:10.911461426 +0300
@@ -199,6 +199,8 @@ def create_osd(
'--%s' % storetype,
'--data', data
]
+ if not system.is_systemd(conn):
+ args.append('--no-systemd')
if zap:
LOG.warning('zapping is no longer supported when preparing')
if dmcrypt: