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:mi...@kuentos.guam.net                            
  mailto:msetze...@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@HOME CREDITS
SETI        13494271.333531   |   EINSTEIN     9405727.039852
ROSETTA      5639347.136653   |   ABC         15618024.368219

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org

Reply via email to