On Wed, May 02, 2007 at 04:38:17PM -0500, Paul Johnson wrote:
> On 4/25/07, Axel Thimm <[EMAIL PROTECTED]> wrote:
> >On Sat, Apr 21, 2007 at 06:56:32PM -0500, Paul Johnson wrote:
> >> I've noticed that when the yum update runs, it replaces the
> >> openafs-kernel module, rather than just installing the new one.
> >> That's bad if I end up not keeping the new kernel. Other kernel module
> >> RPMS leave the old versions.
> >>
> >> I asked in the RPM list and the fix for that, at least on Fedora Core
> >> versions of linux, is to add this line
> >>
> >> Provides: kernel-modules = %{kernvers}
> >>
> >> In this way, yum/rpm knows to leave the module until the kernel itself
> >> is removed.
> >
> >That's not yet enough, it was shown last year, that any scheme not
> >having the uname -r in the name of the package (the rpm name as in
> >contrast to the rpm version/release) can only support the very latest
> >kernel.
> >
> >But ATrpms has kmdls (w/ the uname -r in name) and a yum plugin that
> >simply work. Check that out, if you like.
> 
> I'm sorry to say that you are not correct.  Or, at least, I don't
> think so.

I love to be challenged. ;)

> Perhaps yum is better than it was, or the openafs spec file is
> different than you recall.

I never make stong statements unless I really know what I'm talking
about, check
http://fedoraproject.org/wiki/AxelThimm/kmdls#head-a61a3d3e1f7743ab6054a5563729fb83e30129ea
for the gory details. Any scheme not using uname-r in name is broken
when it comes to supporting more than the latest kernel version. You
can try all sorts of workarounds, but it is just against the nature of
rpm (and dpkg), and you will end at using uname-r in name for proper
operation.

> The only change in openafs.spec that I made was inserting this:
> 
> rovides:         kernel-modules = %{kernvers}
> 
> I rebuilt the openafs-kernel packages for 2 kernels and uploaded them
> to my yum server, and when I update my machine, it did an install, not
> an upgrade, of openafs-kernel when I ran "yum update".  Observe
> 
> # rpm -q openafs-kernel
> 
> openafs-kernel-1.4.4-2.6.20_1.2944.fc6_3fc6pj
> openafs-kernel-1.4.4-2.6.20_1.2948.fc6_3fc6pj
> 
> My RPMs are named:
> 
> openafs-kernel-1.4.4-2.6.20_1.2944.fc6_3fc6pj.i686.rpm
> openafs-kernel-1.4.4-2.6.20_1.2948.fc6_3fc6pj.i686.rpm

OK, now try the scenario where you want to upgrade both to 1.4.5 or a
simple security erratum of 1.4.4. Oops, only the latest kernel got
updated?
-- 
Axel.Thimm at ATrpms.net

Attachment: pgp0ycszRv9Wc.pgp
Description: PGP signature

Reply via email to