Bug#574617: grub-pc: GRUB_DEFAULT=saved not working

rup i rupi at rantanplan.org
Fri Mar 19 12:10:36 UTC 2010


Package: grub-pc
Version: 1.98-1
Severity: important


Hi,

setting 'GRUB_DEFAULT=saved' is quite meaningless at this point: the
generated /boot/grub/grub.cfg contains the set default="${saved_entry}"
and a function 'savedefault' which should save this, but actually this
doesn't do anything. 

Sorry for not providing more insight. I'm happy to provide more info or
test something if requested. 

Thanks,
rupi


-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/mapper/yui-root / ext4 rw,relatime,errors=remount-ro,user_xattr,barrier=1,data=ordered,usrquota,grpquota 0 0
/dev/mapper/yui-tmp /tmp ext4 rw,nosuid,nodev,noexec,relatime,barrier=1,data=ordered 0 0
/dev/mapper/yui-usr /usr ext4 rw,nodev,relatime,barrier=1,data=ordered 0 0
/dev/mapper/yui-var /var ext4 rw,nodev,noexec,relatime,user_xattr,barrier=1,data=ordered,usrquota,grpquota 0 0
/dev/mapper/crypt-rupi /home/rupi ext4 rw,relatime,barrier=1,data=ordered 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 ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default="${saved_entry}"
if [ ${prev_saved_entry} ]; then
  set saved_entry=${prev_saved_entry}
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z ${boot_once} ]; then
    saved_entry=${chosen}
    save_env saved_entry
  fi
}
insmod lvm
insmod ext2
set root='(yui-usr)'
search --no-floppy --fs-uuid --set f7a2ba68-1edd-444c-9c1d-056bde4c60c5
if loadfont /share/grub/unicode.pf2 ; then
  set gfxmode=1280x800 at 32
  insmod gfxterm
  insmod vbe
  # added, taken from:
  # http://forums.debian.net/viewtopic.php?f=5&t=41881
  set gfxpayload=keep
  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
insmod lvm
insmod ext2
set root='(yui-root)'
search --no-floppy --fs-uuid --set 74a91c4f-c784-4785-8afd-09e4b6808eec
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/06_rupi_theme ###
insmod lvm
insmod ext2
set root='(yui-root)'
search --no-floppy --fs-uuid --set 74a91c4f-c784-4785-8afd-09e4b6808eec
insmod png
if background_image /etc/grub.d/yui-grub.png ; then
  set color_normal=black/black
  set color_highlight=black/white
else
  set menu_color_normal=cyan/blue
  set menu_color_highlight=white/blue
fi
### END /etc/grub.d/06_rupi_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Debian GNU/Linux, with Linux 2.6.32-trunk-amd64" --class debian --class gnu-linux --class gnu --class os {
	insmod lvm
	insmod ext2
	set root='(yui-root)'
	search --no-floppy --fs-uuid --set 74a91c4f-c784-4785-8afd-09e4b6808eec
	echo	Loading Linux 2.6.32-trunk-amd64 ...
	linux	/boot/vmlinuz-2.6.32-trunk-amd64 root=/dev/mapper/yui-root ro acpi_enforce_resources=lax quiet
	echo	Loading initial ramdisk ...
	initrd	/boot/initrd.img-2.6.32-trunk-amd64
}
menuentry "Debian GNU/Linux, with Linux 2.6.32-trunk-amd64 (recovery mode)" --class debian --class gnu-linux --class gnu --class os {
	insmod lvm
	insmod ext2
	set root='(yui-root)'
	search --no-floppy --fs-uuid --set 74a91c4f-c784-4785-8afd-09e4b6808eec
	echo	Loading Linux 2.6.32-trunk-amd64 ...
	linux	/boot/vmlinuz-2.6.32-trunk-amd64 root=/dev/mapper/yui-root ro single acpi_enforce_resources=lax
	echo	Loading initial ramdisk ...
	initrd	/boot/initrd.img-2.6.32-trunk-amd64
}
menuentry "Debian GNU/Linux, with Linux 2.6.32-3-amd64" --class debian --class gnu-linux --class gnu --class os {
	insmod lvm
	insmod ext2
	set root='(yui-root)'
	search --no-floppy --fs-uuid --set 74a91c4f-c784-4785-8afd-09e4b6808eec
	echo	Loading Linux 2.6.32-3-amd64 ...
	linux	/boot/vmlinuz-2.6.32-3-amd64 root=/dev/mapper/yui-root ro acpi_enforce_resources=lax quiet
	echo	Loading initial ramdisk ...
	initrd	/boot/initrd.img-2.6.32-3-amd64
}
menuentry "Debian GNU/Linux, with Linux 2.6.32-3-amd64 (recovery mode)" --class debian --class gnu-linux --class gnu --class os {
	insmod lvm
	insmod ext2
	set root='(yui-root)'
	search --no-floppy --fs-uuid --set 74a91c4f-c784-4785-8afd-09e4b6808eec
	echo	Loading Linux 2.6.32-3-amd64 ...
	linux	/boot/vmlinuz-2.6.32-3-amd64 root=/dev/mapper/yui-root ro single acpi_enforce_resources=lax
	echo	Loading initial ramdisk ...
	initrd	/boot/initrd.img-2.6.32-3-amd64
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/30_os-prober ###
### 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 testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-3-amd64 (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/bash

Versions of packages grub-pc depends on:
ii  debconf [debconf-2.0]         1.5.28     Debian configuration management sy
ii  grub-common                   1.98-1     GRand Unified Bootloader, version 
ii  libc6                         2.10.2-6   Embedded GNU C Library: Shared lib
ii  ucf                           3.0025     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

-- debconf information:
  grub2/kfreebsd_cmdline:
* grub2/linux_cmdline: acpi_enforce_resources=lax
  grub-pc/chainload_from_menu.lst: true
  grub-pc/kopt_extracted: false
* grub-pc/install_devices: (hd0)
  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