Compiling and loading a kernel module on Aurora

Since this is an image based system, I am not sure how to proceed in compiling and loading a kernel module. If someone could tell me if there is anything special I have to do when compiling it for use with Aurora. Also, I need to know how to load it at boot and persist it through image updates. Just pointing me to relevant documentation would be fine.

Thanks all.

This is not easy and may be impossible depending on the kernel module. If it isn’t already in the Universal Blue akmods repo, and if it isn’t there then it needs to be PR’d and accepted.

Then you need to make your own custom image based off Aurora. Bazzite has documentation on 3 different methods on how to do this. Sorry if this was not the answer you were looking for, this is one of the largest barriers.

Is it possible to install akmods or regular kernel mods in a systemd sysext?

sorry, should have said. I have to modify the btusb driver to add the hardware id for my motherboard’s built-in bluetooth. The modification is here for 6.8 kernel