Dkms for thumbleweed , kernel longterm

Hi
I’ve setup 4 dkms for rebuilding DVB modules.
Currently, the compilation didn’t done post kernel update but on next reboot. I have to done a second reboot to have the modules loaded.
How to correct this (Fedora, Redhat, Mint 22.1 and Debian do it post kernel install , before reboot) ?
Thanks.

Fix dkms package to install trigger for kernel-xxx-devel packages, test and submit your changes. It is also possible to create a separate package with this trigger.

1 Like

Thanks. You’re surely right, but as explained above I’d nevever done this on other distributions.
Can you explain how to made this? Please note kernel-xxx-devel change at each update and I don’t want to modify file(s) each time at updates.

Both Fedora and Debian-based distributions use extensible kernel installation framework where you can add custom scripts to be executed during kernel installation and removal. This makes it trivial to integrate DKMS - just drop a right script into the right directory.

SUSE never needed it - it relied on kABI compatibility between kernel updates so there was no need to rebuild a kernel module against new version. This works well for stable releases but not so well for Tumbleweed where kABI can break at any time. OTOH your question is about longterm kernel. I expect this kernel to maintain kABI between the minor version updates, so you may not really need to run DKMS every time at all, only rebuild modules when major version jumps. Have you checked (before DKMS run) whether weak updates are present in the new kernels?

I am not sure where to start. Are you familiar with creating and building RPM packages?

1 Like

Not really familiar with RPM packages building. Each time kernel longterm updates, i need to rebuid the 4 dkms, they are kernel dvb modules.

I stay corrected. Weak updates are only done for KMPs, not for arbitrary out-of-tree modules.

I didn’t understand your last message. Dkms rebuilds my modules each time I’ve get new kernel, it’s an automated task. The rebuild process is OK on next reboot (no error and process is done since 10 years on other distros), i need to rebuild it before reboot like the other distros. Without that correction, I need reboot 2 times to get my dvb modules working.