[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1074461: linux: header_preinst.d hooks



Source: linux
Version: 5.10.209-2
Severity: wishlist

Hi,

is it possible to add support for header_preinst.h hooks (similar to
header_postinst.d hooks)?

My use case would be dkms. Whenever a linux-headers-$KVERS package gets
updated (without changing the package name), we need to rebuild all dkms
modules against the new headers. Therefore we need to "invalidate" (e.g.
"unbuild" them (in dkms language)) the currently built modules, s.t.
dkms will rebuild them. That would better fit to a preinst hook than to a
postinst hook. postinst hooks are called from both linux-headers-* and
linux-image-* packages, possibly causing two builds (with unbuild
inbetween). Also, if postinst hooks failed because a module was not
compatible with the updated headers, configuring the header package
again after fixing the module package would also rebuild all successfully
built modules once again.
Therefore I'd prefer to do the invalidation step only once in a
header_preinst.d hook.


Andreas


Reply to: