Support for rockylinux

Hi everybody,

Just tested maas snap 3.1.0 with curtin 21.3 (custom snap) and seems to install rocky linux 8.4 without any problems.

BR
Francesco

Thanks Francesco, that’s good news. Glad it worked.

btw any chance you can share what you did for others?

Yes this information will be good :sunny:

Hi everybody:

here it is:

update to this:

maas 3.1.0-10901-g.f1f8f1505 17913 3.1/stable canonical✓ -
maas-cli 0.6.5 13 latest/stable canonical✓ -

update DB:

postgresql-12 12.9-0ubuntu0.20.04.

check for MAAS running as usual.

Then running as root:

cd
wget https://github.com/canonical/curtin/archive/refs/tags/21.3.tar.gz
tar xvfz 21.3.tar.gz
cd curtin-21.3/
python3.8 setup.py build
cd
snap stop maas.supervisor
umount /snap/maas/17913
unsquashfs /var/lib/snapd/snaps/maas_17913.snap
cd squashfs-root
ls -al build/lib/curtin/
rm -rf /root/squashfs-root/usr/lib/python3/dist-packages/curtin/
cp -R build/lib/curtin /root/squashfs-root/usr/lib/python3/dist-packages/
ls -al /root/squashfs-root/usr/lib/python3/dist-packages/curtin/
cd
mksquashfs squashfs-root maas_17913.snap
-> make a backup copy of original snap!!!
-> then
cp maas_17913.snap /var/lib/snapd/snaps/
chmod 600 /var/lib/snapd/snaps/maas_17913.snap
reboot

hope it helps!

BR
Francesco

PS
rocky image was build with packer and uploaded as a normal centos on maas

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.

Rocky is now supported via packer MAAS templates.