Bug#445425: grub: Sort order of menu items is incorrect

Frans Pop elendil at planet.nl
Fri Oct 5 17:01:25 UTC 2007


Package: grub
Version: 0.97-29
Severity: normal

I've been compiling some test kernels and with those I get the following
order:
Found kernel: /vmlinuz-2.6.23-rc8+cfs
Found kernel: /vmlinuz-2.6.23-rc9
Found kernel: /vmlinuz-2.6.23-rc9-test2
Found kernel: /vmlinuz-2.6.23-rc9-test
Found kernel: /vmlinuz-2.6.23-rc8
Found kernel: /vmlinuz-2.6.23-rc7
Found kernel: /vmlinuz-2.6.23-rc6

The major error here is that rc8+cfs is sorted before rc9 kernels, but
if I read the comments in update-grub correctly, the rc9-test* kernels
should also be sorted before rc9 itself.

It seems that the tests for kernel suffixes is the problem here. It
should test for the _first occurence_ of a suffix in a version and
not only check the end of a version string.

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.23-rc9-test (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

-- no debconf information





More information about the Pkg-grub-devel mailing list