diff --git a/coriolis/osmorphing/osdetect/centos.py b/coriolis/osmorphing/osdetect/centos.py index 0fe1c5e2d..4b0ae0199 100644 --- a/coriolis/osmorphing/osdetect/centos.py +++ b/coriolis/osmorphing/osdetect/centos.py @@ -11,6 +11,7 @@ LOG = logging.getLogger(__name__) CENTOS_DISTRO_IDENTIFIER = "CentOS" CENTOS_STREAM_DISTRO_IDENTIFIER = "CentOS Stream" +ALMA_IDENTIFIER = "AlmaLinux" class CentOSOSDetectTools(base.BaseLinuxOSDetectTools): @@ -26,10 +27,11 @@ def detect_os(self): release_info[0].strip()) if m: distro, version, _, _ = m.groups() - if CENTOS_DISTRO_IDENTIFIER not in distro: + if (CENTOS_DISTRO_IDENTIFIER not in distro and + ALMA_IDENTIFIER not in distro): LOG.debug( - "Distro does not appear to be a CentOS: %s", - distro) + "Distro does not appear to be a CentOS or Alma: " + f"{distro}") return {} distribution_name = CENTOS_DISTRO_IDENTIFIER