bug-grub
[Top][All Lists]
Advanced

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

[bug #39855] grub2-mkconfig: wrong sort order for Linux kernels with dit


From: Jan Kundrát
Subject: [bug #39855] grub2-mkconfig: wrong sort order for Linux kernels with ditro-specific prefixes
Date: Thu, 22 Aug 2013 16:50:36 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/534.34 (KHTML, like Gecko) rekonq/2.3.0 Safari/534.34

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

                 Summary: grub2-mkconfig: wrong sort order for Linux kernels
with ditro-specific prefixes
                 Project: GNU GRUB
            Submitted by: jkt
            Submitted on: Thu 22 Aug 2013 04:50:36 PM GMT
                Category: Configuration
                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: other
         Reproducibility: Every Time
         Planned Release: None

    _______________________________________________________

Details:

This is my /boot:

/boot/8cuj15uc.iso
/boot/System.map-genkernel-x86_64-3.10.9
/boot/System.map-genkernel-x86_64-3.9.6
/boot/grub2
/boot/initramfs-genkernel-x86_64-3.10.9
/boot/initramfs-genkernel-x86_64-3.9.6
/boot/kernel-genkernel-x86_64-3.10.9
/boot/kernel-genkernel-x86_64-3.9.6

grib2-mkconfig insisten on preferring the 3.9.6 kernel over the 3.10.9
version. Here is why -- the grub-mkconfig_lib contains a "
version_test_numeric" function which attempts to use numeric sort for version
comparisons. Unfortunately, the rest of the code passes the file names
including the "genkernel-x86_64-" prefix, and `sort -n` falls back to regular
string sort. However, using `sort -V` for "version" sort works, see the
attached patch.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Thu 22 Aug 2013 04:50:36 PM GMT  Name: grub2-version-sort.patch  Size:
381B   By: jkt

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

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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