Re: Re: Yum or repository problem?

"Fajar A. Nugraha" <[email protected]>
Newsgroups gmane.linux.rpm.yum
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.