grub2-mkconfig issue Fedora 16

Michael D. Setzer II mikes at kuentos.guam.net
Sun Dec 23 00:00:22 UTC 2012


Recently noticed that the kernels were not showing up in newest 
to older in the boot screen after running grub2-mkconfig.

The .7 was being sorted before the .10.

Found a patch to the grub-mkconfig_lib file to correct the sorting.

version_find_latest ()
{
  #patched (whole work is done by sort!):
  echo $@ | tr ' ' '\n' | sort -Vr | head -1 | cat
#bad code! sorts wrong!	
#local a=""
 # for i in $@ ; do
  #  if version_test_gt "$i" "$a" ; then
   #   a="$i"
    #fi
  #done
  #echo "$a"
}

Then it sorts correctly again. Seems to have been fixed in other 
later releases, but not in Fedora 16.

+----------------------------------------------------------+
  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        13494271.333531   |   EINSTEIN     9405727.039852
ROSETTA      5639347.136653   |   ABC         15618024.368219



More information about the users mailing list