support for rocky linux

Bug #1934513 reported by Francesco Santagata
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
curtin
Fix Released
Undecided
Dan Bungert

Bug Description

Hi,
since rocky linux seems to replace centos, as centos has changed its roadmap, it will be really helpful to add rocky linux to curtin distro:

stdout: start: cmd-install/stage-curthooks/builtin/cmd-curthooks: curtin command curthooks
        Running curtin builtin curthooks
        finish: cmd-install/stage-curthooks/builtin/cmd-curthooks: FAIL: curtin command curthooks
        Traceback (most recent call last):
          File "/curtin/curtin/commands/main.py", line 202, in main
            ret = args.func(args)
          File "/curtin/curtin/commands/curthooks.py", line 1891, in curthooks
            builtin_curthooks(cfg, target, state)
          File "/curtin/curtin/commands/curthooks.py", line 1686, in builtin_curthooks
            distro_info = distro.get_distroinfo(target=target)
          File "/curtin/curtin/distro.py", line 118, in get_distroinfo
            variant = name_to_distro(variant_name)
          File "/curtin/curtin/distro.py", line 57, in name_to_distro
            return DISTROS[DISTROS.index(distname)]
        ValueError: tuple.index(x): x not in tuple
        tuple.index(x): x not in tuple

Stderr: ''

distro.py should have support to rocky linux

BR
Francesco

Related branches

Revision history for this message
Francesco Santagata (phrancesco) wrote :

Hi,

is there a way to ask for feature @curtin dev team ?

Not a bug but a missing feature, is there in any dev roadmap ?

Thanks

BR
Francesco

Revision history for this message
Dan Bungert (dbungert) wrote :

Rocky Linux has a reasonable /etc/os-release file, so we should be able to recognize it based on the ID_LIKE value.

Changed in curtin:
status: New → In Progress
assignee: nobody → Dan Bungert (dbungert)
Dan Bungert (dbungert)
Changed in curtin:
status: In Progress → Fix Committed
Revision history for this message
Dan Bungert (dbungert) wrote :

This bug is believed to be fixed in curtin in version 21.3. If this is still a problem for you, please make a comment and set the state back to New. Thank you.

Changed in curtin:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.