[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
grub-mkconfig_lib fails to detect sort -V option
From: |
Mike Gilbert |
Subject: |
grub-mkconfig_lib fails to detect sort -V option |
Date: |
Mon, 12 Mar 2012 23:32:49 -0400 |
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
- grub-mkconfig_lib fails to detect sort -V option,
Mike Gilbert <=