Permalink
Browse files

Merge pull request #31262 from Vaelatern/add_void

Add support for Void Linux
  • Loading branch information...
cachedout committed Feb 22, 2016
2 parents 873061e + 7afbfe2 commit f58cdda0868c18cd3f1bf8d3cfee427a8b2f6399
Showing with 1,168 additions and 82 deletions.
  1. +4 −2 salt/grains/core.py
  2. +528 −80 salt/modules/runit.py
  3. +1 −0 salt/modules/service.py
  4. +635 −0 salt/modules/xbps-pkg.py
View
@@ -30,7 +30,7 @@
# /etc/DISTRO-release checking that is part of platform.linux_distribution()
from platform import _supported_dists
_supported_dists += ('arch', 'mageia', 'meego', 'vmware', 'bluewhite64',
'slamd64', 'ovs', 'system', 'mint', 'oracle')
'slamd64', 'ovs', 'system', 'mint', 'oracle', 'void')
# Import salt libs
import salt.log
@@ -997,6 +997,7 @@ def id_():
'manjaro': 'Manjaro',
'antergos': 'Antergos',
'sles': 'SUSE',
'void': 'Void',
}
# Map the 'os' grain to the 'os_family' grain
@@ -1048,6 +1049,7 @@ def id_():
'Devuan': 'Debian',
'antiX': 'Debian',
'NILinuxRT': 'NILinuxRT',
'Void': 'Void',
}
@@ -1179,7 +1181,7 @@ def os_data():
init_cmdline = fhr.read().replace('\x00', ' ').split()
init_bin = salt.utils.which(init_cmdline[0])
if init_bin is not None:
supported_inits = (six.b('upstart'), six.b('sysvinit'), six.b('systemd'))
supported_inits = (six.b('upstart'), six.b('sysvinit'), six.b('systemd'), six.b('runit'))
edge_len = max(len(x) for x in supported_inits) - 1
try:
buf_size = __opts__['file_buffer_size']
Oops, something went wrong.

0 comments on commit f58cdda

Please sign in to comment.