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.
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”.
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.
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.
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
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)?
" MAAS uses curtin from the host if installed via deb, and the version inside of the snap when running from a snap
that being said, there might be changes needed in maas code to support it. with a deb-based maas they can install curtin 21.3 and try building a custom image
to be clear, we don’t need curtin to be in the LTS to update it in maas. we keep a copy of the updated package in the PPA since we usually depend on a higher version than the one in the archive"