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:  Configuration Severity:  Major
Priority:  5 - Normal Item Group:  None
Status:  Fixed Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Closed Release: 
Release:  * other Reproducibility:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       

 

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>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

     

     

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-03-19 phcoder StatusNone => Fixed
        Open/ClosedOpen => Closed

    Back to the top


    Powered by Savane 3.9