How to add a NIC kernel module to Enlistment OS' initrd?

Guys,

I have a small computer here with Realtek 2.5Gbps that after PXE booting into MAAS, it does not find the NIC card.

Upon investigation, we realized that the Linux kernel and initrd used by MAAS to boot the Enlistment OS (Ephemeral OS) does not have the required kernel module yet.

We manually installed Ubuntu 24.04 in the machine, downloaded and installed the kernel module from the vendor’s website. It works!

Now, we have to insert the compiled kernel module into the MAAS’ initrd used during PXE boot.

How do you do that?

We are using MAAS 3.5 installed via Debian packages, which might make things a bit easier to find files or perhaps even rebuild from sources.

Please advise.

You can checkout this repository https://git.launchpad.net/maas-images and use some of the scripts to rebuild the images. Then you would need to point your MAAS to the simplestream that you generate