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

Vladimir 'φ-coder/phcoder' Serbinenko phcoder at gmail.com
Sat Mar 27 00:10:44 UTC 2010


>
>
> Hi,
>
> setting 'GRUB_DEFAULT=3Dsaved' is quite meaningless at this point: the
> generated /boot/grub/grub.cfg contains the set default=3D"${saved_entry=
}"
> and a function 'savedefault' which should save this, but actually this
> doesn't do anything.=20
>  =20
savedefault is incompatible with /boot/grub on LVM currently
> Sorry for not providing more insight. I'm happy to provide more info or=

> test something if requested.=20
>
> Thanks,
> rupi
>
>
> -- Package-specific info:
>
> *********************** BEGIN /proc/mounts
> /dev/mapper/yui-root / ext4 rw,relatime,errors=3Dremount-ro,user_xattr,=
barrier=3D1,data=3Dordered,usrquota,grpquota 0 0
> /dev/mapper/yui-tmp /tmp ext4 rw,nosuid,nodev,noexec,relatime,barrier=3D=
1,data=3Dordered 0 0
> /dev/mapper/yui-usr /usr ext4 rw,nodev,relatime,barrier=3D1,data=3Dorde=
red 0 0
> /dev/mapper/yui-var /var ext4 rw,nodev,noexec,relatime,user_xattr,barri=
er=3D1,data=3Dordered,usrquota,grpquota 0 0
> /dev/mapper/crypt-rupi /home/rupi ext4 rw,relatime,barrier=3D1,data=3Do=
rdered 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 templa=
tes
> # 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=3D"${saved_entry}"
> if [ ${prev_saved_entry} ]; then
>   set saved_entry=3D${prev_saved_entry}
>   save_env saved_entry
>   set prev_saved_entry=3D
>   save_env prev_saved_entry
>   set boot_once=3Dtrue
> fi
>
> function savedefault {
>   if [ -z ${boot_once} ]; then
>     saved_entry=3D${chosen}
>     save_env saved_entry
>   fi
> }
> insmod lvm
> insmod ext2
> set root=3D'(yui-usr)'
> search --no-floppy --fs-uuid --set f7a2ba68-1edd-444c-9c1d-056bde4c60c5=

> if loadfont /share/grub/unicode.pf2 ; then
>   set gfxmode=3D1280x800 at 32
>   insmod gfxterm
>   insmod vbe
>   # added, taken from:
>   # http://forums.debian.net/viewtopic.php?f=3D5&t=3D41881
>   set gfxpayload=3Dkeep
>   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=3D'(yui-root)'
> search --no-floppy --fs-uuid --set 74a91c4f-c784-4785-8afd-09e4b6808eec=

> set locale_dir=3D($root)/boot/grub/locale
> set lang=3Den
> insmod gettext
> set timeout=3D5
> ### END /etc/grub.d/00_header ###
>
> ### BEGIN /etc/grub.d/06_rupi_theme ###
> insmod lvm
> insmod ext2
> set root=3D'(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=3Dblack/black
>   set color_highlight=3Dblack/white
> else
>   set menu_color_normal=3Dcyan/blue
>   set menu_color_highlight=3Dwhite/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 deb=
ian --class gnu-linux --class gnu --class os {
> 	insmod lvm
> 	insmod ext2
> 	set root=3D'(yui-root)'
> 	search --no-floppy --fs-uuid --set 74a91c4f-c784-4785-8afd-09e4b6808ee=
c
> 	echo	Loading Linux 2.6.32-trunk-amd64 ...
> 	linux	/boot/vmlinuz-2.6.32-trunk-amd64 root=3D/dev/mapper/yui-root ro =
acpi_enforce_resources=3Dlax 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 mo=
de)" --class debian --class gnu-linux --class gnu --class os {
> 	insmod lvm
> 	insmod ext2
> 	set root=3D'(yui-root)'
> 	search --no-floppy --fs-uuid --set 74a91c4f-c784-4785-8afd-09e4b6808ee=
c
> 	echo	Loading Linux 2.6.32-trunk-amd64 ...
> 	linux	/boot/vmlinuz-2.6.32-trunk-amd64 root=3D/dev/mapper/yui-root ro =
single acpi_enforce_resources=3Dlax
> 	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=3D'(yui-root)'
> 	search --no-floppy --fs-uuid --set 74a91c4f-c784-4785-8afd-09e4b6808ee=
c
> 	echo	Loading Linux 2.6.32-3-amd64 ...
> 	linux	/boot/vmlinuz-2.6.32-3-amd64 root=3D/dev/mapper/yui-root ro acpi=
_enforce_resources=3Dlax 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=3D'(yui-root)'
> 	search --no-floppy --fs-uuid --set 74a91c4f-c784-4785-8afd-09e4b6808ee=
c
> 	echo	Loading Linux 2.6.32-3-amd64 ...
> 	linux	/boot/vmlinuz-2.6.32-3-amd64 root=3D/dev/mapper/yui-root ro sing=
le acpi_enforce_resources=3Dlax
> 	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 ty=
pe the
> # menu entries you want to add after this comment.  Be careful not to c=
hange
> # 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=3Den_US.UTF-8, LC_CTYPE=3Den_US.UTF-8 (charmap=3DUTF-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 manag=
ement sy
> ii  grub-common                   1.98-1     GRand Unified Bootloader, =
version=20
> ii  libc6                         2.10.2-6   Embedded GNU C Library: Sh=
ared 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 Debia=
n Deskto
>
> -- debconf information:
>   grub2/kfreebsd_cmdline:
> * grub2/linux_cmdline: acpi_enforce_resources=3Dlax
>   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
>
>
>
> _______________________________________________
> Pkg-grub-devel mailing list
> Pkg-grub-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/pkg-grub-devel
>
>  =20


--=20
Regards
Vladimir '=CF=86-coder/phcoder' Serbinenko


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 293 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20100327/dbdcea1e/attachment.pgp>


More information about the Pkg-grub-devel mailing list