On 05/07/2023 16.17, Vincent Lefevre wrote:
I have autoinstall_all_kernels="1" in /etc/dkms/framework.conf
so that all kernel modules are rebuilt when some dependency
changes.

Does that at least cause a rebuild if the linux-headers-* package gets updated? IIRC as long as KVERS does not change, dkms does not rebuild modules on header change.

More general: if linux-headers-* gets updated but the ABI does not change (and the ABI is not 0), does dkms have to rebuild the modules? Why?

If the ABI changes, the package gets renamed and the new installation implies a rebuild.

If the ABI is 0, this should be treated a non-stable ABI and an update of the header package should definitively trigger a module rebuild.

from dkms(8):
> .B $autoinstall_all_kernels
> Used by the common postinst for DKMS modules. It controls if the build
> should be done for all installed kernels or only for the current and
> latest installed kernel. It has no command
> line equivalent.

So that flag is not doing what you expected. And I think on Debian it is ignored and we always build for all kernels. But only on new header installation or on dkms module update. Not on header update.


Andreas

Reply via email to