[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: grub-mkconfig_lib fails to detect sort -V option
From: |
Mike Gilbert |
Subject: |
Re: grub-mkconfig_lib fails to detect sort -V option |
Date: |
Tue, 20 Mar 2012 12:41:39 -0400 |
On Mon, Mar 19, 2012 at 4:46 PM, Piscium <address@hidden> wrote:
> On 13 March 2012 03:32, Mike Gilbert <address@hidden> wrote:
>> With the release of linux-3.2.10, I found grub-mkconfig is improperly
>> sorting my kernels.
>>
>> Generating grub.cfg ...
>> Found linux image: /boot/vmlinuz-3.2.9
>> Found linux image: /boot/vmlinuz-3.2.9.old
>> Found linux image: /boot/vmlinuz-3.2.8
>> Found linux image: /boot/vmlinuz-3.2.8.old
>> Found linux image: /boot/vmlinuz-3.2.7
>> Found linux image: /boot/vmlinuz-3.2.7.old
>> Found linux image: /boot/vmlinuz-3.2.6
>> Found linux image: /boot/vmlinuz-3.2.5
>> Found linux image: /boot/vmlinuz-3.2.10
>>
>> It looks like a simple typo in grub-mkconfig_lib. Patch below.
>>
>>
>> === modified file 'util/grub-mkconfig_lib.in'
>> --- util/grub-mkconfig_lib.in 2012-03-04 22:13:16 +0000
>> +++ util/grub-mkconfig_lib.in 2012-03-13 03:31:29 +0000
>> @@ -193,7 +193,7 @@
>> no)
>> LC_ALL=C sort -n;;
>> *)
>> - if sort -v </dev/null > /dev/null 2>&1; then
>> + if sort -V </dev/null > /dev/null 2>&1; then
>> version_sort_sort_has_v=yes
>> LC_ALL=C sort -V
>> else
>
> Replacing "sort -n" with "sort -V" in
> /usr/local/lib/grub/grub-mkconfig_lib fixed this issue for me (with
> Fedora kernels).
>
> I was wondering if this fix will go into the upcoming grub 2.0.0?
>
phcoder committed a fix yesterday.