How to configure akmods when installing custom kernels packages and kernel modules?

Hi, Fedora Community. I have two questions about akmods currently but i cannot find any related answers so i hereby ask for help.

So the first question is about how to make akmods invoke automatically when certain packages are installed. You see, in the past, when i upgraded my on-stock kernel, the akmods got invoked automatically in the background. However, now i’m using a custom kernel from copr, and i can only manually use akmods --kernels to install the akmods packages for me. Is there any way that i can configure akmods to automatically build kernel modules for me whenever a certain rpm (in this case, custom kernel) gets installed. I noticed the script inside /etc/kernel/postinst.d/akmodsposttrans before, but i failed to find a way to configure it on myself.

Another question is how to package my own akmods. I have a out-of-tree source kernel module and i want also to use akmods to manage the build process whenever the kernel gets upgraded. Are there any instructions that i can learn to package my own akmods from source code?

Any help is pretty appreciated. Thanks in advance.

akmods is triggered by default with 2 methods:

This way it should work OOTB.


A custom module is easier to build with DKMS:
How to update drivers of a USB WiFi dongle - #6 by vgaetera

2 Likes

huge thanks!

1 Like