Description of problem:
DKMS would like to have the opportunity to run it's auto-rebuilder/installer
after a new kernel RPM has been installed, without having to wait for a system
restart to run it. Likewise, when a kernel RPM is removed, it would like to be
able to run to remove modules managed by it.
Debian kernels intentionally run scripts located in /etc/kernel/postinst.d/
following new kernel package installation, /etc/kernel/prerm.d/ before kernel
package removal. DKMS drops a script into these directories, to perform the
I want Fedora and RHEL kernels to do likewise. Patch attached.
Version-Release number of selected component (if applicable):
Created attachment 295073 [details]
Note this patch implements the same interface as that used for Debian and Ubuntu
kernels. The scripts are invoked with $1 = kernel version, and $2 = path to
vmlinuz file. (DKMS doesn't need $2, but I'm keeping the interface the same to
match so people can reuse their scriptlets.)
now has the actual scripts being invoked by kernel rpm %posttrans and %preun.
Now it's time for the kernel .spec patch, as discussed on fedora-kernel-list, to
be applied, which adds %posttrans and %preun invocation of /sbin/new-kernel-pkg
has the patch, and the kernel.spec dependency on mkinitrd needs to bump to >=