Bug#551915: Set default stanza by some keyword, not number
Andrei Popescu
andreimpopescu at gmail.com
Wed Oct 21 18:46:36 UTC 2009
Package: grub-pc
Version: 1.97~beta4-1
Severity: wishlist
Hello,
I now have kernel 2.6.29, 2.6.30 and also want to try out 2.6.31-trunk,
but I'm still booting 2.6.29 due to #532005. I would be nice if I could
specify something like
GRUB_DEFAULT="2.6.29"
and then the script(s) would generate the correct number for the
'set default=X' directive.
Regards,
Andrei
-- Package-specific info:
*********************** BEGIN /proc/mounts
/dev/disk/by-uuid/ad376964-ae82-4b02-ae57-6348eb0c6efa / ext3 rw,noatime,errors=remount-ro,data=journal 0 0
/dev/sda7 /var ext3 rw,noatime,errors=continue,data=journal 0 0
/dev/sda2 /home ext3 rw,noatime,errors=continue,data=journal 0 0
/dev/sda5 /home/amp/big ext3 rw,nosuid,nodev,noexec,noatime,errors=continue,data=journal 0 0
*********************** END /proc/mounts
*********************** BEGIN /boot/grub/device.map
(hd0) /dev/sda
*********************** END /boot/grub/device.map
*********************** BEGIN /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
set default=2
insmod ext2
set root=(hd0,6)
search --no-floppy --fs-uuid --set ad376964-ae82-4b02-ae57-6348eb0c6efa
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
set timeout=5
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
insmod ext2
set root=(hd0,6)
search --no-floppy --fs-uuid --set ad376964-ae82-4b02-ae57-6348eb0c6efa
insmod png
if background_image /boot/grub/moreblue-orbit-grub.png ; 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_linux ###
menuentry "Debian GNU/Linux, Linux 2.6.30-2-amd64" {
insmod ext2
set root=(hd0,6)
search --no-floppy --fs-uuid --set ad376964-ae82-4b02-ae57-6348eb0c6efa
linux /boot/vmlinuz-2.6.30-2-amd64 root=UUID=ad376964-ae82-4b02-ae57-6348eb0c6efa ro quiet
initrd /boot/initrd.img-2.6.30-2-amd64
}
menuentry "Debian GNU/Linux, Linux 2.6.30-2-amd64 (recovery mode)" {
insmod ext2
set root=(hd0,6)
search --no-floppy --fs-uuid --set ad376964-ae82-4b02-ae57-6348eb0c6efa
linux /boot/vmlinuz-2.6.30-2-amd64 root=UUID=ad376964-ae82-4b02-ae57-6348eb0c6efa ro single
initrd /boot/initrd.img-2.6.30-2-amd64
}
menuentry "Debian GNU/Linux, Linux 2.6.29-2-amd64" {
insmod ext2
set root=(hd0,6)
search --no-floppy --fs-uuid --set ad376964-ae82-4b02-ae57-6348eb0c6efa
linux /boot/vmlinuz-2.6.29-2-amd64 root=UUID=ad376964-ae82-4b02-ae57-6348eb0c6efa ro quiet
initrd /boot/initrd.img-2.6.29-2-amd64
}
menuentry "Debian GNU/Linux, Linux 2.6.29-2-amd64 (recovery mode)" {
insmod ext2
set root=(hd0,6)
search --no-floppy --fs-uuid --set ad376964-ae82-4b02-ae57-6348eb0c6efa
linux /boot/vmlinuz-2.6.29-2-amd64 root=UUID=ad376964-ae82-4b02-ae57-6348eb0c6efa ro single
initrd /boot/initrd.img-2.6.29-2-amd64
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows Vista (loader) (on /dev/sda1)" {
insmod ntfs
set root=(hd0,1)
search --no-floppy --fs-uuid --set 40fc11ccfc11bcda
chainloader +1
}
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
*********************** END /boot/grub/grub.cfg
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.29-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=ro_RO.UTF-8, LC_CTYPE=ro_RO.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages grub-pc depends on:
ii debconf [debconf-2.0] 1.5.28 Debian configuration management sy
ii grub-common 1.97~beta4-1 GRand Unified Bootloader, version
ii libc6 2.10.1-1 GNU C Library: Shared libraries
ii ucf 3.0024 Update Configuration File: preserv
grub-pc recommends no packages.
Versions of packages grub-pc suggests:
ii desktop-base 5.0.5 common files for the Debian Deskto
ii genisoimage 9:1.1.9-1 Creates ISO-9660 CD-ROM filesystem
-- debconf information:
grub2/kfreebsd_cmdline:
* grub-pc/linux_cmdline:
* grub2/linux_cmdline:
* grub-pc/chainload_from_menu.lst: true
grub-pc/kopt_extracted: false
* grub-pc/install_devices: /dev/sda
grub-pc/postrm_purge_boot_grub: false
grub2/kfreebsd_cmdline_default: quiet
* grub2/linux_cmdline_default: quiet
More information about the Pkg-grub-devel
mailing list