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-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel