Bug#584812: savedefault still not working for me
Tim Richardson
tim at tim-richardson.net
Thu Jun 17 07:00:06 UTC 2010
On 06/17/2010 09:04 AM, Colin Watson wrote:
> I need to see your /boot/grub/grub.cfg again, please.
>
# 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 $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 part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set 573c35ff-3f2a-4218-8e3a-933354b1f738
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=1280x800
insmod gfxterm
insmod vbe
fi
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set 573c35ff-3f2a-4218-8e3a-933354b1f738
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/05_debian_theme ###
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set 573c35ff-3f2a-4218-8e3a-933354b1f738
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, with Linux 2.6.34-0.slh.9-sidux-686'
--class debian --class gnu-linux --class gnu --class os {
savedefault
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set 573c35ff-3f2a-4218-8e3a-933354b1f738
echo 'Loading Linux 2.6.34-0.slh.9-sidux-686 ...'
linux /boot/vmlinuz-2.6.34-0.slh.9-sidux-686
root=UUID=573c35ff-3f2a-4218-8e3a-933354b1f738 ro quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.34-0.slh.9-sidux-686
}
menuentry 'Debian GNU/Linux, with Linux 2.6.34-0.slh.9-sidux-686
(recovery mode)' --class debian --class gnu-linux --class gnu --class os {
savedefault
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set 573c35ff-3f2a-4218-8e3a-933354b1f738
echo 'Loading Linux 2.6.34-0.slh.9-sidux-686 ...'
linux /boot/vmlinuz-2.6.34-0.slh.9-sidux-686
root=UUID=573c35ff-3f2a-4218-8e3a-933354b1f738 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.34-0.slh.9-sidux-686
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set 573c35ff-3f2a-4218-8e3a-933354b1f738
multiboot /boot/memtest86+_multiboot.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set 573c35ff-3f2a-4218-8e3a-933354b1f738
multiboot /boot/memtest86+_multiboot.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda2)" {
savedefault
insmod part_msdos
insmod ntfs
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set 00080f07080efc02
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 ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
More information about the Pkg-grub-devel
mailing list