[Python-apps-team] Bug#594228: startupmanager: wrong parsing of the created grub.cfg

Alain rpnpif rpnpif at free.fr
Tue Aug 24 17:41:42 UTC 2010


The grub.cfg that does permit the booting (by grub-install --force).

#
# 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="0"
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
}

function load_video {
  insmod vbe
  insmod vga
  insmod video_bochs
  insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(hd1,msdos1)'
search --no-floppy --fs-uuid --set c9ea41b4-f399-48c8-87a5-b254689124b1
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,msdos1)'
search --no-floppy --fs-uuid --set c9ea41b4-f399-48c8-87a5-b254689124b1
set locale_dir=($root)/boot/grub/locale
set lang=C.UTF-8
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='(hd1,msdos1)'
search --no-floppy --fs-uuid --set c9ea41b4-f399-48c8-87a5-b254689124b1
insmod png
if background_image /usr/share/images/desktop-base/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.32-5-686" --class debian --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd1,msdos1)'
search --no-floppy --fs-uuid --set c9ea41b4-f399-48c8-87a5-b254689124b1
echo'Loading Linux 2.6.32-5-686 ...'
linux/boot/vmlinuz-2.6.32-5-686 root=UUID=c9ea41b4-f399-48c8-87a5-b254689124b1 ro  quiet
echo'Loading initial ramdisk ...'
initrd/boot/initrd.img-2.6.32-5-686
}
### END /etc/grub.d/10_linux ###

### 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 ###


--------------------------------------------------------------------------
The grub.cfg generated by startupmanager that does a wrong display and prevent
the booting of the system.

#
# 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="0"
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
}

function load_video {
  insmod vbe
  insmod vga
  insmod video_bochs
  insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(hd1,msdos1)'
search --no-floppy --fs-uuid --set c9ea41b4-f399-48c8-87a5-b254689124b1
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,msdos1)'
search --no-floppy --fs-uuid --set c9ea41b4-f399-48c8-87a5-b254689124b1
set locale_dir=($root)/boot/grub/locale
set lang=C.UTF-8
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='(hd1,msdos1)'
search --no-floppy --fs-uuid --set c9ea41b4-f399-48c8-87a5-b254689124b1
insmod png
if background_image /usr/share/images/desktop-base/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.32-5-686' --class debian --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd1,msdos1)'
	search --no-floppy --fs-uuid --set c9ea41b4-f399-48c8-87a5-b254689124b1
	echo	'Loading Linux 2.6.32-5-686 ...'
	linux	/boot/vmlinuz-2.6.32-5-686 root=UUID=c9ea41b4-f399-48c8-87a5-b254689124b1 ro  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.32-5-686
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-686 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd1,msdos1)'
	search --no-floppy --fs-uuid --set c9ea41b4-f399-48c8-87a5-b254689124b1
	echo	'Loading Linux 2.6.32-5-686 ...'
	linux	/boot/vmlinuz-2.6.32-5-686 root=UUID=c9ea41b4-f399-48c8-87a5-b254689124b1 ro single 
	echo	'Loading initial ramdisk ...'
	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 "linux (on /dev/sda6)" {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos6)'
	search --no-floppy --fs-uuid --set 81e8f2c4-20b7-11d7-9fd8-93ff90347a48
	linux /boot/vmlinuz BOOT_IMAGE=linux root=/dev/sda6 resume=/dev/sda5 vga=791
	initrd (hd0,5)/boot/initrd.img
}
menuentry "2008.1 (on /dev/sda6)" {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos6)'
	search --no-floppy --fs-uuid --set 81e8f2c4-20b7-11d7-9fd8-93ff90347a48
	linux /boot/vmlinuz BOOT_IMAGE=2008.1 root=/dev/sda6 vga=791
	initrd (hd1,5)/boot/initrd.img
}
menuentry "desktop 2.6.24.7-3mnb (on /dev/sda6)" {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos6)'
	search --no-floppy --fs-uuid --set 81e8f2c4-20b7-11d7-9fd8-93ff90347a48
	linux /boot/vmlinuz-2.6.24.7-desktop-3mnb BOOT_IMAGE=desktop_2.6.24.7-3mnb root=/dev/sda6 resume=/dev/sda5 vga=791
	initrd (hd0,5)/boot/initrd-2.6.24.7-desktop-3mnb.img
}
menuentry "desktop 2.6.33.5-2 (on /dev/sda6)" {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos6)'
	search --no-floppy --fs-uuid --set 81e8f2c4-20b7-11d7-9fd8-93ff90347a48
	linux /boot/vmlinuz-2.6.33.5-desktop-2mnb BOOT_IMAGE=desktop_2.6.33.5-2 root=/dev/sda6 resume=/dev/sda5 vga=791
	initrd (hd0,5)/boot/initrd-2.6.33.5-desktop-2mnb.img
}
menuentry "linux (on /dev/sdb6)" {
	insmod part_msdos
	insmod ext2
	set root='(hd1,msdos6)'
	search --no-floppy --fs-uuid --set ac5d5862-444c-4cb4-b879-53e5627bacfb
	linux /boot/vmlinuz BOOT_IMAGE=linux root=/dev/hdb7 resume=/dev/hda5 vga=791
	initrd (hd0,6)/boot/initrd.img
}
menuentry "2.6.21.5-1 (on /dev/sdb6)" {
	insmod part_msdos
	insmod ext2
	set root='(hd1,msdos6)'
	search --no-floppy --fs-uuid --set ac5d5862-444c-4cb4-b879-53e5627bacfb
	linux /boot/vmlinuz-2.6.21.5-1mdv BOOT_IMAGE=2.6.21.5-1 root=/dev/hda6 resume=/dev/hda5 vga=791
	initrd (hd0,5)/boot/initrd-2.6.21.5-1mdv.img
}
menuentry "2.6.26.5 (on /dev/sdb6)" {
	insmod part_msdos
	insmod ext2
	set root='(hd1,msdos6)'
	search --no-floppy --fs-uuid --set ac5d5862-444c-4cb4-b879-53e5627bacfb
	linux /boot/vmlinuz-2.6.26.5 BOOT_IMAGE=2.6.26.5 root=/dev/hda6 resume=/dev/hda5 vga=791
	initrd (hd0,5)/boot/initrd-2.6.26.5.img
}
menuentry "linux (on /dev/sdb6)" {
	insmod part_msdos
	insmod ext2
	set root='(hd1,msdos6)'
	search --no-floppy --fs-uuid --set ac5d5862-444c-4cb4-b879-53e5627bacfb
	linux /boot/vmlinuz BOOT_IMAGE=linux root=/dev/hda6 resume=/dev/hda5 vga=791
	initrd (hd0,5)/boot/initrd.img
}
menuentry "desktop586 2.6.24.4-1mnb (on /dev/sdb6)" {
	insmod part_msdos
	insmod ext2
	set root='(hd1,msdos6)'
	search --no-floppy --fs-uuid --set ac5d5862-444c-4cb4-b879-53e5627bacfb
	linux /boot/vmlinuz-2.6.24.4-desktop586-1mnb BOOT_IMAGE=desktop586_2.6.24.4-1mnb root=/dev/hdb7 resume=/dev/hda5 vga=791
	initrd (hd0,6)/boot/initrd-2.6.24.4-desktop586-1mnb.img
}
menuentry "2.6.25.17-1 (on /dev/sdb6)" {
	insmod part_msdos
	insmod ext2
	set root='(hd1,msdos6)'
	search --no-floppy --fs-uuid --set ac5d5862-444c-4cb4-b879-53e5627bacfb
	linux /boot/vmlinuz-2.6.25.17-1mdv BOOT_IMAGE=2.6.25.17-1 root=/dev/hdb7 resume=/dev/hda5 vga=791
	initrd (hd0,6)/boot/initrd-2.6.25.17-1mdv.img
}
### 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 Python-apps-team mailing list