summaryrefslogtreecommitdiff
diff options
authorAlexsander Silva de Souza <[email protected]>2024-03-13 23:11:55 +0000
committerServer Team CI Bot <[email protected]>2024-03-13 23:11:55 +0000
commit69e315408e3b33010e00387e624680cd66056c61 (patch)
treeee6d604e3edd624e845a5cf92b78bc99cfaa13b4
parent7db312f27463e7f56ede4778e5cfac91a0db14a2 (diff)
feat(distro): add AlmaLinux support
fixes LP#1922970
-rw-r--r--curtin/distro.py5
-rw-r--r--pylintrc2
2 files changed, 4 insertions, 3 deletions
diff --git a/curtin/distro.py b/curtin/distro.py
index 3284b696..46643202 100644
--- a/curtin/distro.py
+++ b/curtin/distro.py
@@ -21,7 +21,7 @@ from .log import LOG
DistroInfo = namedtuple('DistroInfo', ('variant', 'family'))
DISTRO_NAMES = ['arch', 'centos', 'debian', 'fedora', 'freebsd', 'gentoo',
'ol', 'opensuse', 'redhat', 'rhel', 'sles', 'suse', 'ubuntu',
- 'rocky']
+ 'rocky', 'almalinux']
# python2.7 lacks PEP 435, so we must make use an alternative for py2.7/3.x
@@ -35,7 +35,8 @@ DISTROS = distro_enum(*DISTRO_NAMES)
OS_FAMILIES = {
DISTROS.debian: [DISTROS.debian, DISTROS.ubuntu],
DISTROS.redhat: [DISTROS.centos, DISTROS.fedora, DISTROS.ol,
- DISTROS.redhat, DISTROS.rhel, DISTROS.rocky],
+ DISTROS.redhat, DISTROS.rhel, DISTROS.rocky,
+ DISTROS.almalinux],
DISTROS.gentoo: [DISTROS.gentoo],
DISTROS.freebsd: [DISTROS.freebsd],
DISTROS.suse: [DISTROS.opensuse, DISTROS.sles, DISTROS.suse],
diff --git a/pylintrc b/pylintrc
index 3557c40f..4de6618d 100644
--- a/pylintrc
+++ b/pylintrc
@@ -7,7 +7,7 @@ jobs=0
# List of members which are set dynamically and missed by pylint inference
# system, and so shouldn't trigger E1101 when accessed. Python regular
# expressions are accepted.
-generated-members=redhat,centos,fedora,debian,suse,ol,opensuse,sles,arch,ubuntu,rhel,freebsd,gentoo,rocky
+generated-members=redhat,centos,fedora,debian,suse,ol,opensuse,sles,arch,ubuntu,rhel,freebsd,gentoo,rocky,almalinux
# List of module names for which member attributes should not be checked
# (useful for modules/projects where namespaces are manipulated during runtime