(Fwd) Re: grub2-mkconfig with 3.2.10 kernels?

Michael D. Setzer II mikes at kuentos.guam.net
Mon Mar 19 20:40:30 UTC 2012


This an addition to the earlier solution that I had mentioned about 
the grub-mkconfig issue with sorting issue, but here seems to be 
the solution in the process. 

Did remove a lot of the header lines from the list.
------- Forwarded message follows -------
From: Jordan Uggla <jordan.uggla at gmail.com>
Date: Mon, 19 Mar 2012 13:30:10 -0700
Subject: Re: grub2-mkconfig with 3.2.10 kernels?

On Sun, Mar 18, 2012 at 2:50 PM, Michael D. Setzer II
<mikes at kuentos.guam.net> wrote:
> Just did an update and it included a new kernel, but then on
> reboot after running grub2-mkconfig noticed that the newest one was
> not first. Seems to be sorting the 9 before the 10?
>
> Is this a bug?

It was a bug (a simple typo), and has been fixed in bzr trunk. The
patch which fixes it is below.

-- 
Jordan Uggla (Jordan_U on irc.freenode.net)

=== modified file 'util/grub-mkconfig_lib.in'
--- util/grub-mkconfig_lib.in   2012-03-04 22:13:16 +0000
+++ util/grub-mkconfig_lib.in   2012-03-19 15:27:59 +0000
@@ -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

_______________________________________________
Help-grub mailing list
Help-grub at gnu.org
https://lists.gnu.org/mailman/listinfo/help-grub
------- End of forwarded message -------

+----------------------------------------------------------+
  Michael D. Setzer II -  Computer Science Instructor      
  Guam Community College  Computer Center                  
  mailto:mikes at kuentos.guam.net                            
  mailto:msetzerii at gmail.com
  http://www.guam.net/home/mikes
  Guam - Where America's Day Begins                        
  G4L Disk Imaging Project maintainer 
  http://sourceforge.net/projects/g4l/
+----------------------------------------------------------+

http://setiathome.berkeley.edu (Original)
Number of Seti Units Returned:  19,471
Processing time:  32 years, 290 days, 12 hours, 58 minutes
(Total Hours: 287,489)

BOINC at HOME CREDITS
SETI        11952853.535440   |   EINSTEIN     7526408.719852
ROSETTA      4328655.752081   |   ABC         11789983.901504

-------------- next part --------------
A non-text attachment was scrubbed...
Name: WPM$9GJ4.PM$
Type: application/octet-stream
Size: 1014 bytes
Desc: Mail message body
URL: <http://lists.fedoraproject.org/pipermail/users/attachments/20120320/68e6fcec/attachment-0001.obj>


More information about the users mailing list