[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#612454: upgrade-reports: Upgrade Lenny -> Squeeze : Grub2 freeze before the menu display. Some problems in the /boot/grub/grub.cfg auto-generated file.



Package: upgrade-reports
Severity: critical
Tags: patch
Justification: breaks the whole system

I speak French, it's a google translation.

Following the annoncement of the relase of Debian 6.0 (Squeeze) as a new stable
version, I change the sources.list to migrate from Lenny to Squeeze. Everything
went fine until reboot. The new grub2 freeze before displaying the menu.

After several attempts, I solved the problem by deleting two liney in
/boot/grub/grub.cfg.

Here is my file generated by update-grub command:
#
# 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 ###
insmod raid
insmod mdraid
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 raid
insmod mdraid
insmod part_msdos
insmod ext2
set root='(md0)'
search --no-floppy --fs-uuid --set 86fe1b93-e7b2-4c0a-a2f1-0b0c45172d1d
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  load_video
  insmod gfxterm
fi
terminal_output gfxterm
insmod raid
insmod mdraid
insmod part_msdos
insmod ext2
set root='(md0)'
search --no-floppy --fs-uuid --set 86fe1b93-e7b2-4c0a-a2f1-0b0c45172d1d
set locale_dir=($root)/boot/grub/locale
set lang=fr
insmod gettext
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod raid
insmod mdraid
insmod part_msdos
insmod ext2
set root='(md0)'
search --no-floppy --fs-uuid --set 86fe1b93-e7b2-4c0a-a2f1-0b0c45172d1d
insmod png
if background_image /usr/share/images/desktop-base/spacefun-grub.png; then
  set color_normal=light-gray/black
  set color_highlight=white/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, avec Linux 2.6.32-5-686' --class debian --class
gnu-linux --class gnu --class os {
        insmod raid
        insmod mdraid
        insmod part_msdos
        insmod ext2
        set root='(md0)'
        search --no-floppy --fs-uuid --set 86fe1b93-e7b2-4c0a-a2f1-0b0c45172d1d
        echo    'Chargement de Linux 2.6.32-5-686 ...'
        linux   /boot/vmlinuz-2.6.32-5-686 root=UUID=86fe1b93-e7b2-4c0a-
a2f1-0b0c45172d1d ro
        echo    'Chargement du disque mémoire initial ...'
        initrd  /boot/initrd.img-2.6.32-5-686
}
menuentry 'Debian GNU/Linux, avec Linux 2.6.32-5-686 (mode de dépannage)'
--class debian --class gnu-linux --class gnu --class os {
        insmod raid
        insmod mdraid
        insmod part_msdos
        insmod ext2
        set root='(md0)'
        search --no-floppy --fs-uuid --set 86fe1b93-e7b2-4c0a-a2f1-0b0c45172d1d
        echo    'Chargement de Linux 2.6.32-5-686 ...'
        linux   /boot/vmlinuz-2.6.32-5-686 root=UUID=86fe1b93-e7b2-4c0a-
a2f1-0b0c45172d1d ro single
        echo    'Chargement du disque mémoire initial ...'
        initrd  /boot/initrd.img-2.6.32-5-686
}
menuentry 'Debian GNU/Linux, avec Linux 2.6.32-5-486' --class debian --class
gnu-linux --class gnu --class os {
        insmod raid
        insmod mdraid
        insmod part_msdos
        insmod ext2
        set root='(md0)'
        search --no-floppy --fs-uuid --set 86fe1b93-e7b2-4c0a-a2f1-0b0c45172d1d
        echo    'Chargement de Linux 2.6.32-5-486 ...'
        linux   /boot/vmlinuz-2.6.32-5-486 root=UUID=86fe1b93-e7b2-4c0a-
a2f1-0b0c45172d1d ro
        echo    'Chargement du disque mémoire initial ...'
        initrd  /boot/initrd.img-2.6.32-5-486
}
menuentry 'Debian GNU/Linux, avec Linux 2.6.32-5-486 (mode de dépannage)'
--class debian --class gnu-linux --class gnu --class os {
        insmod raid
        insmod mdraid
        insmod part_msdos
        insmod ext2
        set root='(md0)'
        search --no-floppy --fs-uuid --set 86fe1b93-e7b2-4c0a-a2f1-0b0c45172d1d
        echo    'Chargement de Linux 2.6.32-5-486 ...'
        linux   /boot/vmlinuz-2.6.32-5-486 root=UUID=86fe1b93-e7b2-4c0a-
a2f1-0b0c45172d1d ro single
        echo    'Chargement du disque mémoire initial ...'
        initrd  /boot/initrd.img-2.6.32-5-486
}
menuentry 'Debian GNU/Linux, avec Linux 2.6.26-2-686' --class debian --class
gnu-linux --class gnu --class os {
        insmod raid
        insmod mdraid
        insmod part_msdos
        insmod ext2
        set root='(md0)'
        search --no-floppy --fs-uuid --set 86fe1b93-e7b2-4c0a-a2f1-0b0c45172d1d
        echo    'Chargement de Linux 2.6.26-2-686 ...'
        linux   /boot/vmlinuz-2.6.26-2-686 root=UUID=86fe1b93-e7b2-4c0a-
a2f1-0b0c45172d1d ro
        echo    'Chargement du disque mémoire initial ...'
        initrd  /boot/initrd.img-2.6.26-2-686
}
menuentry 'Debian GNU/Linux, avec Linux 2.6.26-2-686 (mode de dépannage)'
--class debian --class gnu-linux --class gnu --class os {
        insmod raid
        insmod mdraid
        insmod part_msdos
        insmod ext2
        set root='(md0)'
        search --no-floppy --fs-uuid --set 86fe1b93-e7b2-4c0a-a2f1-0b0c45172d1d
        echo    'Chargement de Linux 2.6.26-2-686 ...'
        linux   /boot/vmlinuz-2.6.26-2-686 root=UUID=86fe1b93-e7b2-4c0a-
a2f1-0b0c45172d1d ro single
        echo    'Chargement du disque mémoire initial ...'
        initrd  /boot/initrd.img-2.6.26-2-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 ###
### 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 ###


And this is the file that works:

#
# 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 ###
insmod raid
insmod mdraid
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 raid
insmod mdraid
insmod part_msdos
insmod ext2
set root='(md0)'
search --no-floppy --fs-uuid --set 86fe1b93-e7b2-4c0a-a2f1-0b0c45172d1d
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  load_video
  insmod gfxterm
fi
#terminal_output gfxterm
insmod raid
insmod mdraid
insmod part_msdos
insmod ext2
set root='(md0)'
search --no-floppy --fs-uuid --set 86fe1b93-e7b2-4c0a-a2f1-0b0c45172d1d
set locale_dir=($root)/boot/grub/locale
set lang=fr
#insmod gettext
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod raid
insmod mdraid
insmod part_msdos
insmod ext2
set root='(md0)'
search --no-floppy --fs-uuid --set 86fe1b93-e7b2-4c0a-a2f1-0b0c45172d1d
insmod png
if background_image /usr/share/images/desktop-base/spacefun-grub.png; then
  set color_normal=light-gray/black
  set color_highlight=white/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, avec Linux 2.6.32-5-686' --class debian --class
gnu-linux --class gnu --class os {
        insmod raid
        insmod mdraid
        insmod part_msdos
        insmod ext2
        set root='(md0)'
        search --no-floppy --fs-uuid --set 86fe1b93-e7b2-4c0a-a2f1-0b0c45172d1d
        echo    'Chargement de Linux 2.6.32-5-686 ...'
        linux   /boot/vmlinuz-2.6.32-5-686 root=UUID=86fe1b93-e7b2-4c0a-
a2f1-0b0c45172d1d ro
        echo    'Chargement du disque mémoire initial ...'
        initrd  /boot/initrd.img-2.6.32-5-686
}
menuentry 'Debian GNU/Linux, avec Linux 2.6.32-5-686 (mode de dépannage)'
--class debian --class gnu-linux --class gnu --class os {
        insmod raid
        insmod mdraid
        insmod part_msdos
        insmod ext2
        set root='(md0)'
        search --no-floppy --fs-uuid --set 86fe1b93-e7b2-4c0a-a2f1-0b0c45172d1d
        echo    'Chargement de Linux 2.6.32-5-686 ...'
        linux   /boot/vmlinuz-2.6.32-5-686 root=UUID=86fe1b93-e7b2-4c0a-
a2f1-0b0c45172d1d ro single
        echo    'Chargement du disque mémoire initial ...'
        initrd  /boot/initrd.img-2.6.32-5-686
}
menuentry 'Debian GNU/Linux, avec Linux 2.6.32-5-486' --class debian --class
gnu-linux --class gnu --class os {
        insmod raid
        insmod mdraid
        insmod part_msdos
        insmod ext2
        set root='(md0)'
        search --no-floppy --fs-uuid --set 86fe1b93-e7b2-4c0a-a2f1-0b0c45172d1d
        echo    'Chargement de Linux 2.6.32-5-486 ...'
        linux   /boot/vmlinuz-2.6.32-5-486 root=UUID=86fe1b93-e7b2-4c0a-
a2f1-0b0c45172d1d ro
        echo    'Chargement du disque mémoire initial ...'
        initrd  /boot/initrd.img-2.6.32-5-486
}
menuentry 'Debian GNU/Linux, avec Linux 2.6.32-5-486 (mode de dépannage)'
--class debian --class gnu-linux --class gnu --class os {
        insmod raid
        insmod mdraid
        insmod part_msdos
        insmod ext2
        set root='(md0)'
        search --no-floppy --fs-uuid --set 86fe1b93-e7b2-4c0a-a2f1-0b0c45172d1d
        echo    'Chargement de Linux 2.6.32-5-486 ...'
        linux   /boot/vmlinuz-2.6.32-5-486 root=UUID=86fe1b93-e7b2-4c0a-
a2f1-0b0c45172d1d ro single
        echo    'Chargement du disque mémoire initial ...'
        initrd  /boot/initrd.img-2.6.32-5-486
}
menuentry 'Debian GNU/Linux, avec Linux 2.6.26-2-686' --class debian --class
gnu-linux --class gnu --class os {
        insmod raid
        insmod mdraid
        insmod part_msdos
        insmod ext2
        set root='(md0)'
        search --no-floppy --fs-uuid --set 86fe1b93-e7b2-4c0a-a2f1-0b0c45172d1d
        echo    'Chargement de Linux 2.6.26-2-686 ...'
        linux   /boot/vmlinuz-2.6.26-2-686 root=UUID=86fe1b93-e7b2-4c0a-
a2f1-0b0c45172d1d ro
        echo    'Chargement du disque mémoire initial ...'
        initrd  /boot/initrd.img-2.6.26-2-686
}
menuentry 'Debian GNU/Linux, avec Linux 2.6.26-2-686 (mode de dépannage)'
--class debian --class gnu-linux --class gnu --class os {
        insmod raid
        insmod mdraid
        insmod part_msdos
        insmod ext2
        set root='(md0)'
        search --no-floppy --fs-uuid --set 86fe1b93-e7b2-4c0a-a2f1-0b0c45172d1d
        echo    'Chargement de Linux 2.6.26-2-686 ...'
        linux   /boot/vmlinuz-2.6.26-2-686 root=UUID=86fe1b93-e7b2-4c0a-
a2f1-0b0c45172d1d ro single
        echo    'Chargement du disque mémoire initial ...'
        initrd  /boot/initrd.img-2.6.26-2-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 ###
### 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 ###


Simply comment lines with "insmod gettext" and "teminal_output gfxterm". The
grub menu is less beautiful but functional.




-- System Information:
Debian Release: 6.0
  APT prefers stable
  APT policy: (900, 'stable'), (500, 'oldstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=fr_CH.UTF-8, LC_CTYPE=fr_CH.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash



Reply to: