From: Andrey Parfenov Date: Mon, 3 Apr 2017 13:37:21 +0000 (+0300) Subject: ceph-detect-init: Add Virtuozzo Linux support X-Git-Tag: v12.0.2~124^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1997ce47873b86dea7922cd36e4e5ac59743e037;p=ceph.git ceph-detect-init: Add Virtuozzo Linux support Signed-off-by: Andrey Parfenov --- diff --git a/src/ceph-detect-init/ceph_detect_init/__init__.py b/src/ceph-detect-init/ceph_detect_init/__init__.py index 9abc421c97b6..78374bef9fd6 100644 --- a/src/ceph-detect-init/ceph_detect_init/__init__.py +++ b/src/ceph-detect-init/ceph_detect_init/__init__.py @@ -76,6 +76,7 @@ def _get_distro(distro, use_rhceph=False): 'exherbo': gentoo, 'freebsd': freebsd, 'docker': docker, + 'virtuozzo': centos, } if distro == 'redhat' and use_rhceph: @@ -100,6 +101,8 @@ def _normalized_distro_name(distro): return 'oraclevms' elif distro.startswith(('gentoo', 'funtoo', 'exherbo')): return 'gentoo' + elif distro.startswith('virtuozzo'): + return 'virtuozzo' return distro @@ -160,6 +163,9 @@ def platform_information(): codename = 'OL' + release elif distro_lower.startswith('oracle vm'): codename = 'OVS' + release + # this could be an empty string in Virtuozzo linux + elif distro_lower.startswith('virtuozzo linux'): + codename = 'virtuozzo' return ( str(distro).rstrip(),