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

Sam Morris sam at robots.org.uk
Tue Feb 5 01:40:06 UTC 2008


Package: grub-pc
Version: 1.96+20080203-1
Severity: minor

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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:

 Debian GNU/Linux, kernel 2.6.24-1-686
 Debian GNU/Linux, kernel 2.6.24-rc8-686
 Debian GNU/Linux, kernel 2.6.23-1-686
 Debian GNU/Linux, kernel 2.6.22-3-k7
 Debian GNU/Linux, kernel 2.6.22-3-486

But in grub.cfg, they are arranged as follows:

 Debian GNU/Linux, linux 2.6.24-rc8-686
 Debian GNU/Linux, linux 2.6.24-1-686
 Debian GNU/Linux, linux 2.6.23-1-686
 Debian GNU/Linux, linux 2.6.22-3-k7
 Debian GNU/Linux, linux 2.6.22-3-486

It would be nice if the final, released image of 2.6.24 was above the
rc8 image.

- -- Package-specific info:

*********************** BEGIN /proc/mounts
rootfs / rootfs rw 0 0
none /sys sysfs rw,nosuid,nodev,noexec 0 0
none /proc proc rw,nosuid,nodev,noexec 0 0
udev /dev tmpfs rw 0 0
/dev/md0 / ext3 rw,relatime,errors=remount-ro,user_xattr,acl,data=ordered 0 0
/dev/md0 /dev/.static/dev ext3 rw,errors=remount-ro,user_xattr,acl,data=ordered 0 0
tmpfs /lib/init/rw tmpfs rw,nosuid 0 0
usbfs /proc/bus/usb usbfs rw,nosuid,nodev,noexec 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0
devpts /dev/pts devpts rw,nosuid,noexec 0 0
fusectl /sys/fs/fuse/connections fusectl rw 0 0
binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,nosuid,nodev,noexec 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/device.map
(hd0)	/dev/hda
(hd1)	/dev/hdb
(hd2)	/dev/hde
(hd3)	/dev/hdg
*********************** END /boot/grub/device.map

*********************** BEGIN /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/update-grub using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
insmod raid
set default=0
set timeout=5
set root=(md0)
if font (md0)/usr/share/grub/unicode.pff ; then
  set gfxmode=640x480
  insmod gfxterm
  insmod vbe
  terminal gfxterm
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod tga
if background_image (md0)/usr/share/images/desktop-base/debian-blueish-wallpaper-640x480.tga ; then
  set color_normal=black/black
  set color_highlight=magenta/black
else
  set menu_color_normal=cyan/blue
  set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_hurd ###
### END /etc/grub.d/10_hurd ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Debian GNU/Linux, linux 2.6.24-rc8-686" {
	linux	(md0)/boot/vmlinuz-2.6.24-rc8-686 root=/dev/md0 ro vga=0x318 noresume
	initrd	(md0)/boot/initrd.img-2.6.24-rc8-686
}
menuentry "Debian GNU/Linux, linux 2.6.24-rc8-686 (single-user mode)" {
	linux	(md0)/boot/vmlinuz-2.6.24-rc8-686 root=/dev/md0 ro single vga=0x318 noresume
	initrd	(md0)/boot/initrd.img-2.6.24-rc8-686
}
menuentry "Debian GNU/Linux, linux 2.6.24-1-686" {
	linux	(md0)/boot/vmlinuz-2.6.24-1-686 root=/dev/md0 ro vga=0x318 noresume
	initrd	(md0)/boot/initrd.img-2.6.24-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.24-1-686 (single-user mode)" {
	linux	(md0)/boot/vmlinuz-2.6.24-1-686 root=/dev/md0 ro single vga=0x318 noresume
	initrd	(md0)/boot/initrd.img-2.6.24-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.23-1-686" {
	linux	(md0)/boot/vmlinuz-2.6.23-1-686 root=/dev/md0 ro vga=0x318 noresume
	initrd	(md0)/boot/initrd.img-2.6.23-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.23-1-686 (single-user mode)" {
	linux	(md0)/boot/vmlinuz-2.6.23-1-686 root=/dev/md0 ro single vga=0x318 noresume
	initrd	(md0)/boot/initrd.img-2.6.23-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.22-3-k7" {
	linux	(md0)/boot/vmlinuz-2.6.22-3-k7 root=/dev/md0 ro vga=0x318 noresume
	initrd	(md0)/boot/initrd.img-2.6.22-3-k7
}
menuentry "Debian GNU/Linux, linux 2.6.22-3-k7 (single-user mode)" {
	linux	(md0)/boot/vmlinuz-2.6.22-3-k7 root=/dev/md0 ro single vga=0x318 noresume
	initrd	(md0)/boot/initrd.img-2.6.22-3-k7
}
menuentry "Debian GNU/Linux, linux 2.6.22-3-486" {
	linux	(md0)/boot/vmlinuz-2.6.22-3-486 root=/dev/md0 ro vga=0x318 noresume
	initrd	(md0)/boot/initrd.img-2.6.22-3-486
}
menuentry "Debian GNU/Linux, linux 2.6.22-3-486 (single-user mode)" {
	linux	(md0)/boot/vmlinuz-2.6.22-3-486 root=/dev/md0 ro single vga=0x318 noresume
	initrd	(md0)/boot/initrd.img-2.6.22-3-486
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
	linux	(md0)/boot/memtest86+.bin
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/mbr ###
menuentry "Restart boot sequence" {
	chainloader (hd0)+1
}
### END /etc/grub.d/mbr ###

### BEGIN /etc/grub.d/windows ###
menuentry "Windows XP" {
	chainloader (hd0,1)+1
}
### END /etc/grub.d/windows ###
*********************** END /boot/grub/grub.cfg

- -- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (530, 'testing'), (520, 'unstable'), (510, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-1-686 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages grub-pc depends on:
ii  base-files                4.0.2          Debian base system miscellaneous f
ii  debconf [debconf-2.0]     1.5.18         Debian configuration management sy
ii  libc6                     2.7-6          GNU C Library: Shared libraries
ii  liblzo2-2                 2.02-3         data compression library
ii  libncurses5               5.6+20080105-1 Shared libraries for terminal hand

grub-pc recommends no packages.

- -- debconf information:
* grub-pc/chainload_from_menu.lst: true

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHp752shl/216gEHgRAgbJAKDvefmQqTf55ArgGHlS4eedaEOa1wCg2MDo
TXxkVYc7ftYHvvTRo0VVvHA=
=tcTX
-----END PGP SIGNATURE-----





More information about the Pkg-grub-devel mailing list