bugGNU GRUB - Bugs: bug #35888, version_find_latest does not...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #35888: version_find_latest does not recognize kernel version (3.2.9 newer than 3.2.11)

Submitted by:  Michael Weber <xmw>
Submitted on:  Sun 18 Mar 2012 09:23:39 PM UTC  
 
Category: ConfigurationSeverity: Major
Priority: 5 - NormalItem Group: None
Status: FixedPrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: ClosedRelease: 
Release: otherReproducibility: None
Planned Release: None

Sun 18 Mar 2012 09:42:33 PM UTC, comment #2:

--- grub-2.00~beta2/util/grub-mkconfig_lib.in.orig 2012-03-07 19:50:52.000000000 +0100
+++ grub-2.00~beta2/util/grub-mkconfig_lib.in 2012-03-18 22:41:11.115372084 +0100
@@ -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

Michael Weber <xmw>
Sun 18 Mar 2012 09:36:31 PM UTC, comment #1:

Well, the `sort -V` funktionality test actually tests for `sort -v`
.

--- /usr/share/grub/grub-mkconfig_lib.orig 2012-03-16 11:20:32.507123642 +0100
+++ /usr/share/grub/grub-mkconfig_lib 2012-03-18 22:33:16.393306926 +0100
@@ -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

Michael Weber <xmw>
Sun 18 Mar 2012 09:23:39 PM UTC, original submission:

Observed with grub-2.00_beta2 on Gentoo/Linux

I've some kernel/initrd files of versions
3.2.9-gentoo-x.1 and 3.2.11-gentoo-x.0 and .1

The 10_linux default (claimed latest kernel) found by version_find_latest is the 3.2.9-gentoo-x.1 instead of the 3.2.11-gentoo-x.1

Test:
`version_find_latest /boot/vmlinuz /boot/vmlinuz-3.2.11-gentoo-x.0 /boot/vmlinuz-3.2.11-gentoo-x.1 /boot/vmlinuz-3.2.9-gentoo-x.0 /boot/vmlinuz-3.2.9-gentoo-x.1 /boot/vmlinuz.old`

Result /boot/vmlinuz-3.2.9-gentoo-x.1
Expected /boot/vmlinuz-3.2.11-gentoo-x.1

I've looked into /usr/share/grub/grub-mkconfig_lib but the patch isn't obvious.

Cheers.

Michael Weber <xmw>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by phcoder (Updated the item)
  • -unavailable- added by xmw (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 19 Mar 2012 03:28:45 PM UTCphcoderStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1