← Back to team overview

curtin-dev team mailing list archive

[Merge] ~alexsander-souza/curtin:lp1922970_add_almalinux into curtin:master

 

Alexsander de Souza has proposed merging ~alexsander-souza/curtin:lp1922970_add_almalinux into curtin:master.

Commit message:
feat(distro): add AlmaLinux support

fixes LP#1922970

Requested reviews:
  curtin developers (curtin-dev)
Related bugs:
  Bug #1922970 in curtin: "Support for AlmaLinux"
  https://bugs.launchpad.net/curtin/+bug/1922970

For more details, see:
https://code.launchpad.net/~alexsander-souza/curtin/+git/curtin/+merge/462367
-- 
Your team curtin developers is requested to review the proposed merge of ~alexsander-souza/curtin:lp1922970_add_almalinux into curtin:master.
diff --git a/curtin/distro.py b/curtin/distro.py
index 3284b69..4664320 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 3557c40..4de6618 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

Follow ups