Your message dated Wed, 17 Jul 2013 08:54:28 +0200
with message-id <[email protected]>
and subject line Re: Bug#717128: extlinux: Wrong sorting of multiple linux 
kernel images in /boot
has caused the Debian Bug report #717128,
regarding extlinux: Wrong sorting of multiple linux kernel images in /boot
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
717128: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=717128
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: extlinux
Version: 2:4.05+dfsg-6+deb7u1
Severity: normal

The script /usr/sbin/extlinux-update sorts the kernels it finds in /boot
with the following shell code:

(cd /boot && ls vmlinuz-* | grep -v .dpkg-tmp | sed -e 's|vmlinuz-||g' | sort 
-nr)

I believe the intention is to put the latest keenel first, as that is
how the corresponding script for grub2 behaves.  But alas:

 [16+1]~$ ( echo 9 ; echo 10 ) | sort -nr
10
9
 [17+1]~$ ( echo 3.9.9 ; echo 3.9.10 ) | sort -nr
3.9.9
3.9.10

and thus also

 [18+1]~$ (cd /boot && ls vmlinuz-* | grep -v .dpkg-tmp | sed -e 
's|vmlinuz-||g' | sort -nr)
3.9.9
3.9.10

Clearly, the script needs to be a bit smarter about sorting the version
numbers, perhaps creatively reusing some code from the grub or dpkg
packages.

-- System Information:
Debian Release: 7.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.9.9.3 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages extlinux depends on:
ii  debconf [debconf-2.0]  1.5.49
ii  libc6                  2.13-38

Versions of packages extlinux recommends:
pn  os-prober               <none>
ii  syslinux-common         2:4.05+dfsg-6+deb7u1
pn  syslinux-themes-debian  <none>

extlinux suggests no packages.

-- debconf information excluded

--- End Message ---
--- Begin Message ---
Version: 3:6.00~pre4+dfsg-5

On 07/17/2013 08:35 AM, Ian Zimmerman wrote:
> Clearly, the script needs to be a bit smarter about sorting the version
> numbers

it already is as of above version, closing.

-- 
Address:        Daniel Baumann, Donnerbuehlweg 3, CH-3012 Bern
Email:          [email protected]
Internet:       http://people.progress-technologies.net/~daniel.baumann/

--- End Message ---

Reply via email to