Is the issue with not installing new headers?
I've checked my apt logs and it seems that "linux-headers-amd64:amd64
(6.12.38-1)" was removed by "autoremove" after I did system upgrade
yesterday, before new kernel was released. Makes sense -- nothing
"wanted" the package so it got out. Of course, after new update and
reboot I'm left with unbootable system. I will admit that dkms told me
that "Automatic installation of modules ... was skipped since the kernel
headers for this kernel do not seem to be installed" and I just didn't
notice that, but I think it will catch a lot of people by surprise as well.
As far as I understood, the header recommendation was removed because of
either dkms pulling wrong headers (#918918, #968763) or even pulling
kernels which are incompatible (#1059885). Creating a virtual package
and making it a dependency of dkms would be a solution to all of this,
unless I'm missing something. I'm not very well versed in how Debian
packaging works, otherwise I'd probably write a patch and test it