Bug#594228: startupmanager: wrong parsing of the created grub.cfg

2010-08-24 Thread rpnpif
Package: startupmanager
Version: 1.9.13-5
Severity: important

cd /boot/grub
mv grub.cfg grub.cfg.orig
/usr/sbin/startupmanager

1. In the list of the default OS, after probing, startupmanager displays :
menuentry 'Debian GNU/Linux, avec Linux 2.6.32-5-686' --class debian --class 
gnu-linux --class gnu --class os {
instead of Debian GNU/Linux, avec Linux 2.6.32-5-686.

2. The system does not reboot. Only a rescue modifying grub.cfg at the hand 
permit the restart.

I am not sure that the second point is related to startupmanager, but 
it modified my boot sectors without my consent.
A confirmation button should exist for a program that have actions with such
importance for usability.

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages startupmanager depends on:
ii  grub-pc  1.98+20100804-2 GRand Unified Bootloader, version 
ii  menu 2.1.43  generates programs menu for all me
ii  python   2.6.5-11interactive high-level object-orie
ii  python-glade22.17.0-4GTK+ bindings: Glade support
ii  python-gnome22.28.1-1Python bindings for the GNOME desk
ii  python-libxml2   2.7.7.dfsg-4Python bindings for the GNOME XML 
ii  python-support   1.0.9   automated rebuilding support for P
ii  x11-xserver-utils7.5+2   X server utilities
ii  yelp 2.30.1+webkit-1 Help browser for GNOME

startupmanager recommends no packages.

startupmanager suggests no packages.

-- no debconf information





-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#594228: startupmanager: wrong parsing of the created grub.cfg

2010-08-24 Thread Alain rpnpif
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