Bug#601359: grub-pc: update-grub2 with LANG!=C and /boot in raid1 partition does Grub2 crash and reboot
thomas.debesse+debian at gmail.com
thomas.debesse+debian at gmail.com
Mon Oct 25 13:02:21 UTC 2010
Package: grub-pc
Version: 1.98+20100804-4
Severity: important
Hello, there is a bug in grub2 which is related to locale settings,
it makes unusable an already working grub2.
My LANG is set to fr_FR.utf8
On some Squeeze installs, doing an update-grub2 with this kind of LANG
crashs Grub2. update-grub2 runs fine without complain, but at boot time,
Grub2 fails without error message and reboot the pc.
If I boot with another bootloader then I run update-grub2 again, but with
LANG=C, Grub2 runs fine.
If I use apt-get to install a kernel related package which the post-inst
script does an update-grub2, I have to do a 'LANG=C update-grub2' to
repair my Grub2. If I forget to do it, the pc will be unable to boot the
next time.
This bug does not appear each time I install a Squeeze distro, I don't
know how to reproduce it on any squeeze, but it's locale related, sure.
I'm not the only one experiencing this bug. There is another one also
using a LANG!=C (french readers could read his investigations on
http://linuxfr.org/forums/15/29314.html ).
I don't know if it is related, but we are both using /boot in an raid1.
I have my /boot inside an lvm inside a raid1 partition, but the other
guy has put his /boot without lvm, directly into a raid1 partition.
--
Thomas DEBESSE
-- Package-specific info:
*********************** BEGIN /proc/mounts
/dev/mapper/cotinus--vg-cotinus--disk / ext4 rw,relatime,errors=remount-ro,barrier=1,data=ordered 0 0
*********************** END /proc/mounts
*********************** BEGIN /boot/grub/device.map
(hd0) /dev/disk/by-id/ata-MAXTOR_STM3500320AS_9QM9TSTQ
*********************** END /boot/grub/device.map
*********************** BEGIN /boot/grub/grub.cfg
#
# 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 raid
insmod mdraid
insmod lvm
insmod part_msdos
insmod ext2
set root='(cotinus-vg-cotinus-disk)'
search --no-floppy --fs-uuid --set ddb5f053-64c7-48fa-8715-33ede3eb6128
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod raid
insmod mdraid
insmod lvm
insmod part_msdos
insmod ext2
set root='(cotinus-vg-cotinus-disk)'
search --no-floppy --fs-uuid --set ddb5f053-64c7-48fa-8715-33ede3eb6128
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 ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### 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 lvm
insmod part_msdos
insmod ext2
set root='(cotinus-vg-cotinus-disk)'
search --no-floppy --fs-uuid --set ddb5f053-64c7-48fa-8715-33ede3eb6128
echo 'Chargement de Linux 2.6.32-5-686 ...'
linux /boot/vmlinuz-2.6.32-5-686 root=/dev/mapper/cotinus--vg-cotinus--disk ro quiet
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 lvm
insmod part_msdos
insmod ext2
set root='(cotinus-vg-cotinus-disk)'
search --no-floppy --fs-uuid --set ddb5f053-64c7-48fa-8715-33ede3eb6128
echo 'Chargement de Linux 2.6.32-5-686 ...'
linux /boot/vmlinuz-2.6.32-5-686 root=/dev/mapper/cotinus--vg-cotinus--disk ro single
echo 'Chargement du disque mémoire initial ...'
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 ###
### 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 ###
*********************** END /boot/grub/grub.cfg
-- 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/2 CPU cores)
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 grub-pc depends on:
ii debconf [debconf-2.0] 1.5.36 Debian configuration management sy
ii grub-common 1.98+20100804-4 GRand Unified Bootloader, version
ii libc6 2.11.2-6 Embedded GNU C Library: Shared lib
ii libdevmapper1.02.1 2:1.02.48-3 The Linux Kernel Device Mapper use
ii ucf 3.0025+nmu1 Update Configuration File: preserv
grub-pc recommends no packages.
Versions of packages grub-pc suggests:
pn desktop-base <none> (no description available)
-- debconf information:
grub-pc/kopt_extracted: false
grub2/kfreebsd_cmdline:
grub2/device_map_regenerated:
* grub-pc/install_devices: /dev/disk/by-id/ata-MAXTOR_STM3500320AS_9QM9TSTQ
grub-pc/postrm_purge_boot_grub: false
grub-pc/install_devices_failed_upgrade: true
grub-pc/disk_description:
* grub2/linux_cmdline:
grub-pc/install_devices_empty: false
grub2/kfreebsd_cmdline_default: quiet
grub-pc/partition_description:
grub-pc/install_devices_failed: false
grub-pc/install_devices_disks_changed:
* grub2/linux_cmdline_default: quiet
grub-pc/chainload_from_menu.lst: true
grub-pc/mixed_legacy_and_grub2: true
More information about the Pkg-grub-devel
mailing list