[OpenAFS-devel] openafs spec-file kernel-detection
Frank Bagehorn
FBA@zurich.ibm.com
Wed, 17 May 2006 18:49:02 +0200
Derek Atkins <warlord@MIT.EDU> wrote:
> > Instead of using "Requires: kernel" we could use a file dependency on
> > /boot/vmlinuz-<version> on that platforms, as suggested by Jeff
Johnson,
> > the RPM-maintainer:
> > https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=112825
> >
> > This will always work, so maybe this could be a general solution?
>
> Okay, I've changed the
>
> Requires: kernel = ..
>
> to
>
> Requires: /boot/vmlinuz-%{kernvers}
>
> I think the question you were asking (and I don't know the answer)
> is whether we should just use this ALL the time instead of trying to
> use Requires: kernel-<cpu> = %{kversion}
>
> I don't have a strong opinion on that. If I do just use the
> file-requirement everywhere I can remove the extra code and
> complexity, so there's certainly something to say for taking that
> approach.
>
> -derek
>
I don't want to spoil the party, but Linux on PPC has no
/boot/vmlinuz-%{kernvers},
but only a /boot/vmlinux-%{kernvers}.
So we might settle on the uncompressed kernel for the "Requires:" instead
?
Frank
----------------------------------------------------------------------------
Dr. Frank Bagehorn
Manager Infrastructure Services ZRL IS
IBM Zurich Research Lab.
Saeumerstr. 4
CH-8803 Rueschlikon
Switzerland
----------------------------------------------------------------------------
SMTP: fba@zurich.ibm.com
Notes: Frank Bagehorn/Zurich/IBM@IBMCH
phone: ++41 (044) 724 83 23 fax: ++41 (044) 724 89 59