Bug 804558 - grub2-mkconfig sorting fails to place 3.2.10 first.
Summary: grub2-mkconfig sorting fails to place 3.2.10 first.
Keywords:
Status: CLOSED DUPLICATE of bug 678840
Alias: None
Product: Fedora
Classification: Fedora
Component: grub2
Version: 16
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Peter Jones
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-19 09:09 UTC by Gilboa Davara
Modified: 2012-04-19 21:29 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-04-19 21:29:16 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
grub-mkconfig_lib sort patch (382 bytes, patch)
2012-03-21 11:32 UTC, Gilboa Davara
no flags Details | Diff

Description Gilboa Davara 2012-03-19 09:09:31 UTC
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.

- Gilboa

Comment 1 Hans Ecke 2012-03-20 18:10:06 UTC
Hi Gilboa-

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?

Cheers

Hans

Comment 2 Gilboa Davara 2012-03-21 11:32:01 UTC
Created attachment 571685 [details]
grub-mkconfig_lib sort patch

Sorry, my bad.

Comment 3 Hans Ecke 2012-03-21 15:26:07 UTC
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)?

Comment 4 Gilboa Davara 2012-03-21 17:53:56 UTC
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)

- Gilboa

Comment 5 Mads Kiilerich 2012-04-17 23:15:45 UTC
This has been fixed upstream in 2.0 beta 3.

Comment 6 Mads Kiilerich 2012-04-19 21:29:16 UTC

*** This bug has been marked as a duplicate of bug 678840 ***


Note You need to log in before you can comment on or make changes to this bug.