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


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to