The dkms package's shim integration only happens in /usr/lib/dkms/common.postinst. It appears this code is only triggered on installation of a dkms package; this code path is not used as part of the kernel postinst hook when building modules for a newly-installed kernel - that hook only calls /usr/lib/dkms/dkms_autoinstaller .
Marking this critical, since this means users will lose their dkms modules on kernel upgrade.
The dkms package's shim integration only happens in /usr/lib/ dkms/common. postinst. It appears this code is only triggered on installation of a dkms package; this code path is not used as part of the kernel postinst hook when building modules for a newly-installed kernel - that hook only calls /usr/lib/ dkms/dkms_ autoinstaller .
Marking this critical, since this means users will lose their dkms modules on kernel upgrade.