Red Hat Bugzilla – Bug 804558
grub2-mkconfig sorting fails to place 3.2.10 first.
Last modified: 2012-04-19 17:29:16 EDT
As the title suggests, 3.2.10 was pushed to Fedora 16 mid-last-week.
grub2-mkconfig places it last (due to the 3.2.<1>0.
As suggested in GNU mailing list, sort version should be used instead of numerical sort.
Patch attached, tested on several machines.
I see the same bug. It is the version_test_numeric function within /usr/lib/grub/grub-mkconfig_lib which does not work very well. I'd love to see your fix, but I can not see any attachments to this bug. Are you sure you added it?
Created attachment 571685 [details]
grub-mkconfig_lib sort patch
Sorry, my bad.
Ah, I wasn't aware of the "-V" option to sort. Good to know. Works fine here. Could somebody please apply this patch (and/or submit to upstream)?
I'll free some time to create a patch against the actual grub package and post it here.
As I said in the OP, upstream is already aware of the problem (I've created the patch based upon the upstream suggested solution)
This has been fixed upstream in 2.0 beta 3.
*** This bug has been marked as a duplicate of bug 678840 ***