From 467cfebec0f5a977d0873e2416cadc17f7045e86 Mon Sep 17 00:00:00 2001 From: Daniel Vincze Date: Fri, 24 Oct 2025 16:54:09 +0300 Subject: [PATCH] Choose CentOS morphing tool when migrating Alma Linux --- coriolis/osmorphing/osdetect/centos.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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