bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #42844] version_find_latest function in grub-mkconfig_lib produces


From: Tal
Subject: [bug #42844] version_find_latest function in grub-mkconfig_lib produces wrong results
Date: Fri, 25 Jul 2014 23:00:43 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Firefox/24.0

URL:
  <http://savannah.gnu.org/bugs/?42844>

                 Summary: version_find_latest function in grub-mkconfig_lib
produces wrong results
                 Project: GNU GRUB
            Submitted by: tal
            Submitted on: Fri 25 Jul 2014 11:00:42 PM GMT
                Category: None
                Severity: Major
                Priority: 5 - Normal
              Item Group: Software Error
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 
                 Release: Git master
         Reproducibility: Every Time
         Planned Release: None

    _______________________________________________________

Details:

Hey Guys.

This is my first time filing a bug, and I'm not 100% sure it is one, so
forgive the ignorance if I'm missing something.

I just installed CentOS 7, ran all the updates, and ran "grub2-mkconfig" to
generate a new grub menu, but the list of kernels does not appear to be in
proper order.

This appears to be caused by grub-mkconfig_lib's version_find_latest function
not returning the proper newest kernel.

Attached is my short test script, using the grub-mkconfig_lib library from the
latest commit (0901e7855f922e770cbfeb58262cb8fded518190).

This is the output I get from my script:

        Original List:
        /boot/vmlinuz-0-rescue-ee3529f5964c4439921a155f7fd766e7
        /boot/vmlinuz-3.10.0-123.4.2.el7.x86_64
        /boot/vmlinuz-3.10.0-123.el7.x86_64

        Sorted List:
        /boot/vmlinuz-3.10.0-123.el7.x86_64
        /boot/vmlinuz-3.10.0-123.4.2.el7.x86_64
        /boot/vmlinuz-0-rescue-ee3529f5964c4439921a155f7fd766e7

Unless I am mistaken, kernel vmlinuz-3.10.0-123.el7.x86_64 is older than
vmlinuz-3.10.0-123.4.2.el7.x86_64, and should appear lower in the list.
Am I missing something or is this a bug?



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Fri 25 Jul 2014 11:00:42 PM GMT  Name: test.sh  Size: 583B   By: tal

<http://savannah.gnu.org/bugs/download.php?file_id=31776>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?42844>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]