Bug#596476: [grub-pc] grub-set-default does not set default entry
Filipus Klutiero
chealer at gmail.com
Tue Oct 26 13:45:52 UTC 2010
On 2010-10-26 09:17, Vladimir 'φ-coder/phcoder' Serbinenko wrote:
> On 10/26/2010 03:15 PM, Filipus Klutiero wrote:
>> On 2010-10-26 06:47, Vladimir 'φ-coder/phcoder' Serbinenko wrote:
>>> On 09/11/2010 10:17 PM, FIlipus Klutiero wrote:
>>>> Package: grub-pc
>>>> Version: 1.98+20100804-4
>>>> Severity: normal
>>>>
>>>> grub-set-default does not work. After using it and rebooting, the
>>>> default
>>>> entry booted is still the first one.
>>>>
>>>>
>>>>
>>> grub-set-default works only if DEFAULT=saved in /etc/default/grub is
>>> used. Otherwise you need to edit etc/default/grub and rerun update-grub
>> Uh, OK, but why did you close the report?
> Because it's the intended behaviour.
Then the documentation would still be wrong. The manpage reads:
> grub-set-default - set the default boot entry for GRUB
Without any mention of conditions.
Thanks for reopening.
>>>> --- System information. ---
>>>> Architecture: i386
>>>> Kernel: Linux 2.6.32-5-686
>>>>
>>>> Debian Release: squeeze/sid
>>>> 990 testing security.debian.org
>>>> 990 testing debian.mirror.iweb.ca
>>>> 500 unstable debian.mirror.iweb.ca
>>>>
>>>> --- Package information. ---
>>>> Depends (Version) | Installed
>>>> ==========================================-+-====================
>>>> libc6 (>= 2.3) | 2.11.2-2
>>>> libdevmapper1.02.1 (>= 2:1.02.36) | 2:1.02.48-3
>>>> debconf (>= 0.5) | 1.5.35
>>>> OR debconf-2.0 |
>>>> grub-common (= 1.98+20100804-4) | 1.98+20100804-4
>>>> ucf | 3.0025
>>>>
>>>>
>>>> Package's Recommends field is empty.
>>>>
>>>> Suggests (Version) | Installed
>>>> ===========================-+-===========
>>>> desktop-base (>= 4.0.6) |
>>>>
>>>>
>>>>
>>>> --- Output from package bug script ---
>>>>
>>>> *********************** BEGIN /proc/mounts
>>>> /dev/disk/by-uuid/6eb93dd2-bead-48fd-ba35-fe3ea7ebd977 / ext3
>>>> rw,relatime,errors=remount-ro,data=ordered 0 0
>>>> *********************** END /proc/mounts
>>>>
>>>> *********************** BEGIN /boot/grub/device.map
>>>> (hd0)
>>>> /dev/disk/by-id/usb-SanDisk_U3_Cruzer_Micro_000015418860B04B-0:0
>>>> (hd1) /dev/disk/by-id/ata-WDC_WD2500JB-00REA0_WD-WMANK5965611
>>>> *********************** END /boot/grub/device.map
>>>>
>>>> *********************** BEGIN /boot/grub/grub.cfg
>>>> #
>>>> # DO NOT EDIT THIS FILE
>>>> #
>>>> # It is automatically generated by grub-mkconfig using templates
>>>> # from /etc/grub.d and settings from /etc/default/grub
>>>> #
>>>>
>>>> ### BEGIN /etc/grub.d/00_header ###
>>>> if [ -s /grubenv ]; then
>>>> load_env
>>>> fi
>>>> set default="2"
>>>> if [ "" ]; then
>>>> set saved_entry=""
>>>> save_env saved_entry
>>>> set prev_saved_entry=
>>>> save_env prev_saved_entry
>>>> set boot_once=true
>>>> fi
>>>>
>>>> function savedefault {
>>>> if [ -z "" ]; then
>>>> saved_entry=""
>>>> save_env saved_entry
>>>> fi
>>>> }
>>>>
>>>> function load_video {
>>>> insmod vbe
>>>> insmod vga
>>>> insmod video_bochs
>>>> insmod video_cirrus
>>>> }
>>>>
>>>> insmod part_msdos
>>>> insmod ext2
>>>> set root='(hd1,msdos9)'
>>>> search --no-floppy --fs-uuid --set 6eb93dd2-bead-48fd-ba35-fe3ea7ebd977
>>>> if loadfont /usr/share/grub/unicode.pf2 ; then
>>>> set gfxmode=640x480
>>>> load_video
>>>> insmod gfxterm
>>>> fi
>>>> terminal_output gfxterm
>>>> insmod part_msdos
>>>> insmod ext2
>>>> set root='(hd1,msdos9)'
>>>> search --no-floppy --fs-uuid --set 6eb93dd2-bead-48fd-ba35-fe3ea7ebd977
>>>> set locale_dir=()/boot/grub/locale
>>>> set lang=fr
>>>> insmod gettext
>>>> set timeout=5
>>>> ### END /etc/grub.d/00_header ###
>>>>
>>>> ### BEGIN /etc/grub.d/05_debian_theme ###
>>>> set menu_color_normal=cyan/blue
>>>> set menu_color_highlight=white/blue
>>>> ### END /etc/grub.d/05_debian_theme ###
>>>>
>>>> ### BEGIN /etc/grub.d/10_linux ###
>>>> menuentry 'Debian GNU/Linux, avec Linux 2.6.32-5-686' --class debian
>>>> --class
>>>> gnu-linux --class gnu --class os {
>>>> insmod part_msdos
>>>> insmod ext2
>>>> set root='(hd1,msdos9)'
>>>> search --no-floppy --fs-uuid --set
>>>> 6eb93dd2-bead-48fd-ba35-fe3ea7ebd977
>>>> echo 'Chargement de Linux 2.6.32-5-686 ...'
>>>> linux /boot/vmlinuz-2.6.32-5-686
>>>> root=UUID=6eb93dd2-bead-48fd-ba35-
>>>> fe3ea7ebd977 ro quiet
>>>> echo 'Chargement du disque m??moire initial ...'
>>>> initrd /boot/initrd.img-2.6.32-5-686
>>>> }
>>>> menuentry 'Debian GNU/Linux, avec Linux 2.6.32-5-686 (mode de
>>>> d??pannage)' --
>>>> class debian --class gnu-linux --class gnu --class os {
>>>> insmod part_msdos
>>>> insmod ext2
>>>> set root='(hd1,msdos9)'
>>>> search --no-floppy --fs-uuid --set
>>>> 6eb93dd2-bead-48fd-ba35-fe3ea7ebd977
>>>> echo 'Chargement de Linux 2.6.32-5-686 ...'
>>>> linux /boot/vmlinuz-2.6.32-5-686
>>>> root=UUID=6eb93dd2-bead-48fd-ba35-
>>>> fe3ea7ebd977 ro single
>>>> echo 'Chargement du disque m??moire initial ...'
>>>> initrd /boot/initrd.img-2.6.32-5-686
>>>> }
>>>> ### END /etc/grub.d/10_linux ###
>>>>
>>>> ### BEGIN /etc/grub.d/20_linux_xen ###
>>>> ### END /etc/grub.d/20_linux_xen ###
>>>>
>>>> ### BEGIN /etc/grub.d/30_os-prober ###
>>>> menuentry "Microsoft Windows XP Professionnel (on /dev/sda1)" {
>>>> insmod part_msdos
>>>> insmod ntfs
>>>> set root='(hd1,msdos1)'
>>>> search --no-floppy --fs-uuid --set 969cc3239cc2fd2d
>>>> drivemap -s (hd0)
>>>> chainloader +1
>>>> }
>>>> menuentry "Debian GNU/Linux, kernel 2.6.26-2-686 (on /dev/sda5)" {
>>>> insmod part_msdos
>>>> insmod ext2
>>>> set root='(hd1,msdos5)'
>>>> search --no-floppy --fs-uuid --set
>>>> 3b0ac5be-d0a2-4dbc-9b42-6450f11d957c
>>>> linux /boot/vmlinuz-2.6.26-2-686 root=UUID=3b0ac5be-
>>>> d0a2-4dbc-9b42-6450f11d957c ro
>>>> initrd /boot/initrd.img-2.6.26-2-686
>>>> }
>>>> menuentry "Debian GNU/Linux, kernel 2.6.26-2-686 (single-user mode) (on
>>>> /dev/sda5)" {
>>>> insmod part_msdos
>>>> insmod ext2
>>>> set root='(hd1,msdos5)'
>>>> search --no-floppy --fs-uuid --set
>>>> 3b0ac5be-d0a2-4dbc-9b42-6450f11d957c
>>>> linux /boot/vmlinuz-2.6.26-2-686 root=UUID=3b0ac5be-
>>>> d0a2-4dbc-9b42-6450f11d957c ro single
>>>> initrd /boot/initrd.img-2.6.26-2-686
>>>> }
>>>> menuentry "Debian GNU/Linux, kernel memtest86 (on /dev/sda5)" {
>>>> insmod part_msdos
>>>> insmod ext2
>>>> set root='(hd1,msdos5)'
>>>> search --no-floppy --fs-uuid --set
>>>> 3b0ac5be-d0a2-4dbc-9b42-6450f11d957c
>>>> linux /boot/memtest86.bin
>>>> }
>>>> menuentry "Debian GNU/Linux, kernel 2.6.18-6-k7 (on /dev/sda6)" {
>>>> insmod part_msdos
>>>> insmod ext2
>>>> set root='(hd1,msdos6)'
>>>> search --no-floppy --fs-uuid --set
>>>> f2ed1b5d-4c24-4f55-ab66-a1fab17496ff
>>>> linux /boot/vmlinuz-2.6.18-6-k7 root=/dev/hda6 ro
>>>> initrd /boot/initrd.img-2.6.18-6-k7
>>>> }
>>>> menuentry "Debian GNU/Linux, kernel 2.6.18-6-k7 (single-user mode) (on
>>>> /dev/sda6)" {
>>>> insmod part_msdos
>>>> insmod ext2
>>>> set root='(hd1,msdos6)'
>>>> search --no-floppy --fs-uuid --set
>>>> f2ed1b5d-4c24-4f55-ab66-a1fab17496ff
>>>> linux /boot/vmlinuz-2.6.18-6-k7 root=/dev/hda6 ro single
>>>> initrd /boot/initrd.img-2.6.18-6-k7
>>>> }
>>>> ### 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 ###
>>>>
>>>> ### BEGIN /etc/grub.d/41_custom ###
>>>> if [ -f /custom.cfg ]; then
>>>> source /custom.cfg;
>>>> fi
>>>> ### END /etc/grub.d/41_custom ###
>>>> *********************** END /boot/grub/grub.cfg
More information about the Pkg-grub-devel
mailing list