Support for rockylinux

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

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: ‘’

I’ve tryed with a boot-resources created ad CentOS and with another one created as Custom, same result.

I really think that the missing feature is in curtin, already opened a bug there.
Just here to double check that “custom” is the right choise for Rocky Linux.

BR
Francesco

1 Like

Hello,
If similarity to Centos is close to 100%, I would rather suggest the route of using Packer to build Centos image which is sourced from RockyLinux iso instead of Centos ISO. That has at least a chance of working. And then pass it as Centos to maas, “Custom” is rather rudimentary and essentially translates to “dump this compressed disk image to the first storage drive you find on a server”.

Thanks igor,

it’s exactely what I’ve done, I moved my kickstart to point to the rocky repo and build my image with packer.
I’ve created a boot resource under Centos and after that, another one under custom, but curtin is always complaining that way.

I filled a bug under curtin launchpad… I guess is missing feature even there.

https://bugs.launchpad.net/curtin/+bug/1934513

BR
Francesco

Hi @phrancesco

you can check this thread as well already asked question :slight_smile:

Hope more people ask about rocky linux :slight_smile:

BR,
Stefan

@tension183,

thanks, really appreciated your interest, I bumped in your original topic.

BR
Francesco

@tension183, nice.

fwiw, i did bring rocky up in a team meeting today. i’d also like to understand the specific differences between CentOSn/rocky and Ubuntu that make rocky a better choice. feel free to dive deep. the more we know, the more we can do something about it.

Francesco,

I believe naming it is important - so maas and curtin usually work only with whitelisted names
name it centos/centos8 - because that may be whitelisted

BR,
Igor

My understanding is that CentOS Stream 8 replaces CentOS 8, and my assumption is that MAAS will continue to provide CentOS Stream based images for the centos/centos8 flavor. Is that assumption correct (as far as current plans go)?

Alma and Rocky Linux could be added alongside CentOS Stream as big companies are likely to switch to those from CentOS 8.

Thanks, @igor, unfortunately it doesn’t seem to work.

BR
Francesco