Axel Thimm wrote: > dkms has currently the problem that the modules aren't conceived as > packages at all and don't get removed on package removal. There is > True. Worst-case situation, I'll have a bunch of modules belonging to old kernels hanging around. > talk about making this happen, and if the solution is to create a > dependency on the kernel you will see exactly the same thing. > > I mentioned earlier that I modified module-init-tools. The file /sbin/weak-updates, to be exact. Because this file is called whenever the kernel is installed or removed. At this moment I'm setting it up so that "/sbin/weak-modules --add-kernel <KERNE_VERSION>" would call /etc/init.d/dkms_autoinstaller, which means kernel modules and initrd would get build during new kernel install. It would be a trivial manner to hijack "/sbin/weak-modules --remove-kernel <KERNEL_VERSION>" so that it would remove dkms modules for that particular kernel version. The downside of this approach is replacing an upstream package (module-init-tools). I'd rather not do this, but at the moment this is the best solution that I can find. Regards, Fajar _______________________________________________ Yum mailing list Yum@xxxxxxxxxxxxxxxxxxxx https://lists.dulug.duke.edu/mailman/listinfo/yum