On 11/25/25 11:38, Andras Korn wrote:
Package: dkms
Version: 3.2.2-1

dkms ships a /etc/kernel/header_postinst.d/dkms file, which I suppose is 
expected to run when the linux-headers postinst scripts call:

linux-run-hooks headers postinst $version -- "$@"

However, linux-run-hooks doesn't use /etc/kernel/header_postinst.d, only 
/etc/kernel/headers_postinst.d, so the shipped 
/etc/kernel/header_postinst.d/dkms is never run.

(I verified this by adding --verbose --debug to the run-parts invocation in 
linux-run-hooks.)

This is an uncommunicated (maybe even unintended) path change on the src:linux side. Older kernels had this in linux-headers-*.postinst:

 system ("run-parts --report --exit-on-error --arg=$version " .
          "/etc/kernel/header_postinst.d") &&
            die "Failed to process /etc/kernel/header_postinst.d";

This change went unnoticed so long since nowadays linux-headers-* depends on linux-image-* which already triggers dkms via /etc/kernel/postinst.d/dkms (making /etc/kernel/header{,s}_postinst.d/dkms more or less a no-op).


Andreas

Reply via email to