Bug#464086: grub-pc: update-grub should sort rc kernels after released kernels

Philipp Kern pkern at debian.org
Sat Feb 16 15:21:46 UTC 2008


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:phil at 0x539.de                       Ubuntu MOTU
  `-    finger pkern/key at db.debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20080216/5d379035/attachment.pgp 


More information about the Pkg-grub-devel mailing list