On Tue, Feb 05, 2008 at 11:17:19PM +0100, Robert Millan wrote:
> > I noticed a minor regression in grub-pc's update-grub command compared
> > to the one shipped by grub. In my menu.lst, the entries are arranged in
> > the following order:

I am vary if I would call it "minor".  And update-grub from grub-pc
should provide the same sorting order like GRUB Legacy at least for now.
IMHO.

> Please can you define the sorting rules you think should apply and report that
> to grub-devel ?

Looking at GRUB Legacy's update-grub the clue is to append a ".0" when
the version number contains only three digits.

irb(main):002:0> "2.6.24" > "2.6.24-rc8"
=> false
irb(main):003:0> "2.6.24.0" > "2.6.24-rc8"
=> true

Of course that alone is not sufficient.  GRUB Legacy does some more
sanitising to get sensible string-based sorting for version numbers (a
lot of hoops just to stay with plain shell scripting).  I.e. to prevent
"2.10.0" being less than "2.6.0".

But I lack the time at the moment to reflect about "proper" sorting
rules.  It is just very, very annoying that 2.6.24rc8 is booted instead
of 2.6.24 proper which has all the modules installed through m-a.

Kind regards,
Philipp Kern
-- 
 .''`.  Philipp Kern                             Debian Developer
: :' :  http://philkern.de                       Debian Release Assistant
`. `'   xmpp:[EMAIL PROTECTED]                       Ubuntu MOTU
  `-    finger pkern/[EMAIL PROTECTED]

Attachment: signature.asc
Description: Digital signature

Reply via email to