mirror of
https://github.com/ceph/ceph
synced 2025-03-25 11:48:05 +00:00
Merge remote-tracking branch 'gh/jewel'
This commit is contained in:
commit
cec8f23b6a
@ -8,10 +8,6 @@ def choose_init():
|
||||
|
||||
Returns the name of a init system (upstart, sysvinit ...).
|
||||
"""
|
||||
init_mapping = {
|
||||
'11': 'sysvinit', # SLE_11
|
||||
'12': 'systemd', # SLE_12
|
||||
'13.1': 'systemd', # openSUSE_13.1
|
||||
'13.2': 'systemd', # openSUSE_13.2
|
||||
}
|
||||
return init_mapping.get(release, 'sysvinit')
|
||||
if release and int(release.split('.')[0]) >= 12:
|
||||
return 'systemd'
|
||||
return 'sysvinit'
|
||||
|
Loading…
Reference in New Issue
Block a user