The dkms package does support this, at least on Ubuntu, via the /etc/kernel/header_postinst.d/dkms hook.
-- package openafs-modules-dkms 1.4.11+dfsg-1+ubuntu0.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1 https://bugs.launchpad.net/bugs/487535 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs