diff --git a/curtin/distro.py b/curtin/distro.py index 3284b696..1dfc1d84 100644 --- a/curtin/distro.py +++ b/curtin/distro.py @@ -19,9 +19,9 @@ from .util import ( 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'] +DISTRO_NAMES = ['almalinux', 'arch', 'centos', 'debian', 'fedora', 'freebsd', + 'gentoo', 'ol', 'opensuse', 'redhat', 'rhel', 'sles', 'suse', + 'ubuntu', 'rocky'] # python2.7 lacks PEP 435, so we must make use an alternative for py2.7/3.x @@ -34,8 +34,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.almalinux, DISTROS.centos, DISTROS.fedora, + DISTROS.ol, DISTROS.redhat, DISTROS.rhel, DISTROS.rocky], 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