Skip to content

Update hooks Target to package owned file

Emil Velikov requested to merge xexaxo/dkms:fix-hook-targets into main

Ages ago, the kernel packages were including the RW modules.XXX files generated by depmod, like modules.alias. For a while now, the kernel packages do not provide said file(s).

Update the Target pattern to modules.order, which is a file required by depmod and kmod as a whole.

An alternative solution is to swap the Path based patterns to package ones. Although we can explore that as follow-up.


The (untested) alternative solution looks like:

Type = Package
Target = *-dkms
Target = linux*-headers
Target = linux*

Let me know if that seems reasonable and I'll open a MR, after some testing.

Edit: hmm the above will match on more packages than applicable.

Another, somewhat cleaner, solution is to:

  • introduce two virtual packages - kernel and kernel-headers
  • update existing linux{,-lts,-zen,-hardened}{,-headers} package to provide the above
  • update the dkms Target to use the virtual packages
  • update the dkms, bcc, other(?) package to depend on the virtual packages

Yet again, that should be looked separately - merely adding my thoughts in writing here ;-)

Edited by Emil Velikov

Merge request reports