grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: grub-mkconfig_lib fails to detect sort -V option


From: Piscium
Subject: Re: grub-mkconfig_lib fails to detect sort -V option
Date: Mon, 19 Mar 2012 20:46:52 +0000

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?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]