diff options
author | Alexsander Silva de Souza <[email protected]> | 2024-03-13 23:11:55 +0000 |
---|---|---|
committer | Server Team CI Bot <[email protected]> | 2024-03-13 23:11:55 +0000 |
commit | 69e315408e3b33010e00387e624680cd66056c61 (patch) | |
tree | ee6d604e3edd624e845a5cf92b78bc99cfaa13b4 | |
parent | 7db312f27463e7f56ede4778e5cfac91a0db14a2 (diff) |
feat(distro): add AlmaLinux support
fixes LP#1922970
-rw-r--r-- | curtin/distro.py | 5 | ||||
-rw-r--r-- | pylintrc | 2 |
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], @@ -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 |