[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Wrong sorting of suffixed kernels when adding EXTRAVERSION
From: |
Vladimir 'φ-coder/phcoder' Serbinenko |
Subject: |
Re: Wrong sorting of suffixed kernels when adding EXTRAVERSION |
Date: |
Thu, 10 Nov 2011 09:45:22 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) Gecko/20111010 Iceowl/1.0b2 Icedove/3.1.15 |
On 29.10.2011 05:08, Georgi Georgiev wrote:
> Running this on a Gentoo system with kernel images generated by Gentoo's
> genkernel.
>
> My kernel has CONFIG_LOCALVERSION="-kvm1" and I end up with the following
> files
> in /boot (just the relevant section):
>
> kernel-genkernel-x86_64-2.6.37.1-kvm1
> kernel-genkernel-x86_64-2.6.38.2-kvm1
> kernel-genkernel-x86_64-2.6.38.5-kvm1
> kernel-genkernel-x86_64-2.6.39.1-kvm1
> kernel-genkernel-x86_64-2.6.39.3-kvm1
> kernel-genkernel-x86_64-2.6.39-kvm1
>
> grub-mkconfig generates the config in this order, with 2.6.39 being on top,
> while it should be lower.
>
> grep Loading.*2.6. grub.conf | uniq -c
> 2 echo 'Loading Linux x86_64-2.6.39-kvm1 ...'
> 2 echo 'Loading Linux x86_64-2.6.39.3-kvm1 ...'
> 2 echo 'Loading Linux x86_64-2.6.39.1-kvm1 ...'
> 2 echo 'Loading Linux x86_64-2.6.38.5-kvm1 ...'
> 2 echo 'Loading Linux x86_64-2.6.38.2-kvm1 ...'
> 2 echo 'Loading Linux x86_64-2.6.37.1-kvm1 ...'
>
> I have been using the attached patch for a while now and it solves the
> problem just fine. Simply using "sort -V" does the right thing. If the
> "-V" option is not available - revert to the old behavior.
>
Could you please stay POSIX-compatible?
> This hasn't happened with the 3.x kernels as they don't have EXTRAVERSION but
> you never know when that would start.
>
>
>
> _______________________________________________
> Bug-grub mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/bug-grub
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
signature.asc
Description: OpenPGP digital signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Wrong sorting of suffixed kernels when adding EXTRAVERSION,
Vladimir 'φ-coder/phcoder' Serbinenko <=