help-grub
[Top][All Lists]
Advanced

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

Re: grub2-mkconfig not sorting correctly?


From: Michael D. Setzer II
Subject: Re: grub2-mkconfig not sorting correctly?
Date: Sun, 23 Dec 2012 10:00:22 +1000

On 22 Dec 2012 at 15:54, Chris Murphy wrote:

Subject:                Re: grub2-mkconfig not sorting correctly?
From:                   Chris Murphy <address@hidden>
Date sent:              Sat, 22 Dec 2012 15:54:23 -0700
To:                     "address@hidden" <address@hidden>

> 
> On Dec 22, 2012, at 8:20 AM, Mads Kiilerich <address@hidden>
> wrote:
> 
> > 
> > 
> > There is not much to do about that without a time machine or the
> > power of issuing an update for Fedora 16.
> 
> Or get the f18 rpm, and force the update with either yum or rpm. It
> should work.
> 

Thanks. I find the patch to the grub-mkconfig_lib works fine.
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"
}

Didn't know if this was a fedora issue, or if grub handled this setup 
directly. Also, don't know if this is a fedora 16 only issue or any 
user. Haven't gone thru how the original or patch works. 


> 
> Chris Murphy
> _______________________________________________
> Help-grub mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/help-grub


+----------------------------------------------------------+
  Michael D. Setzer II -  Computer Science Instructor      
  Guam Community College  Computer Center                  
  mailto:address@hidden                            
  mailto:address@hidden
  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)

address@hidden CREDITS
SETI        13494271.333531   |   EINSTEIN     9405727.039852
ROSETTA      5639347.136653   |   ABC         15618024.368219




reply via email to

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