Bug#565953: grub-pc: update-grub2 generates invalid entries
Julien Bellion
julien.bellion at free.fr
Tue Jan 19 23:55:27 UTC 2010
Package: grub-pc
Version: 1.98~20100101-1
Severity: important
Hello,
My system have several partitions :
/dev/sda1 : root partition for a Debian testing 64 bits
/dev/sda2 : /boot partition
/dev/sda3 : root partition for a Debian testing 32 bits
/dev/sda6 : home partition
/dev/sda7 : opt partition
When I run update-grub2 from the 64 bits version, the 32 bits version entries are not bootable.
They all point to /dev/sda1 partition, while 32 bits root is sda3.
The problem is the same, but inversed, if I run update-grub2 from the 32 bits version.
My grub.cfg generated entries :
menuentry "Debian GNU/Linux, avec Linux 2.6.32-trunk-686-bigmem" {
insmod ext2
set root=(hd0,2)
search --no-floppy --fs-uuid --set c5a6e206-dac1-45ca-8a21-1216fbc16473
linux //vmlinuz-2.6.32-trunk-686-bigmem root=UUID=cfe65d23-6e74-407b-af61-a80d40eff118 ro ipv6.disable=1 quiet
initrd //initrd.img-2.6.32-trunk-686-bigmem
}
menuentry "Debian GNU/Linux, avec Linux 2.6.32-trunk-amd64" {
insmod ext2
set root=(hd0,2)
search --no-floppy --fs-uuid --set c5a6e206-dac1-45ca-8a21-1216fbc16473
linux //vmlinuz-2.6.32-trunk-amd64 root=UUID=cfe65d23-6e74-407b-af61-a80d40eff118 ro ipv6.disable=1 quiet
initrd //initrd.img-2.6.32-trunk-amd64
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Debian GNU/Linux, avec Linux 2.6.32-trunk-686-bigmem (on /dev/sda3)" {
insmod ext2
set root=(hd0,2)
search --no-floppy --fs-uuid --set c5a6e206-dac1-45ca-8a21-1216fbc16473
linux //vmlinuz-2.6.32-trunk-686-bigmem root=UUID=cfe65d23-6e74-407b-af61-a80d40eff118 ro ipv6.disable=1 quiet
initrd //initrd.img-2.6.32-trunk-686-bigmem
}
menuentry "Debian GNU/Linux, avec Linux 2.6.32-trunk-amd64 (on /dev/sda3)" {
insmod ext2
set root=(hd0,2)
search --no-floppy --fs-uuid --set c5a6e206-dac1-45ca-8a21-1216fbc16473
linux //vmlinuz-2.6.32-trunk-amd64 root=UUID=cfe65d23-6e74-407b-af61-a80d40eff118 ro ipv6.disable=1 quiet
initrd //initrd.img-2.6.32-trunk-amd64
}
menuentry "Julien - Linux 2.6.32-trunk-amd64 (on /dev/sda3)" {
insmod ext2
set root=(hd0,2)
search --no-floppy --fs-uuid --set c5a6e206-dac1-45ca-8a21-1216fbc16473
linux /vmlinuz-2.6.32-trunk-amd64 root=/dev/sda1 ro quiet rootfstype=ext4
initrd /initrd.img-2.6.32-trunk-amd64
}
menuentry "Julien - Linux 2.6.32-trunk-686-bigmem (on /dev/sda3)" {
insmod ext2
set root=(hd0,2)
search --no-floppy --fs-uuid --set c5a6e206-dac1-45ca-8a21-1216fbc16473
linux /vmlinuz-2.6.32-trunk-686-bigmem root=/dev/sda3 ro ipv6.disable=1 quiet
initrd /initrd.img-2.6.32-trunk-686-bigmem
}
Regards,
Julien
-- Package-specific info:
*********************** BEGIN /proc/mounts
/dev/sda1 / ext4 rw,relatime,errors=remount-ro,barrier=1,data=ordered 0 0
/dev/sda2 /boot ext3 rw,relatime,errors=continue,data=ordered 0 0
/dev/sda6 /home ext3 rw,relatime,errors=continue,data=ordered 0 0
/dev/sda3 /mnt/deb32 ext3 rw,relatime,errors=continue,data=ordered 0 0
/dev/sda7 /opt ext3 rw,relatime,errors=continue,data=ordered 0 0
*********************** END /proc/mounts
*********************** BEGIN /boot/grub/device.map
(hd0) /dev/sda
*********************** END /boot/grub/device.map
*********************** BEGIN /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
set default=0
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set cfe65d23-6e74-407b-af61-a80d40eff118
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
set locale_dir=/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 ext2
set root=(hd0,2)
search --no-floppy --fs-uuid --set c5a6e206-dac1-45ca-8a21-1216fbc16473
insmod png
if background_image /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, avec Linux 2.6.32-trunk-686-bigmem" {
insmod ext2
set root=(hd0,2)
search --no-floppy --fs-uuid --set c5a6e206-dac1-45ca-8a21-1216fbc16473
linux //vmlinuz-2.6.32-trunk-686-bigmem root=UUID=cfe65d23-6e74-407b-af61-a80d40eff118 ro ipv6.disable=1 quiet
initrd //initrd.img-2.6.32-trunk-686-bigmem
}
menuentry "Debian GNU/Linux, avec Linux 2.6.32-trunk-686-bigmem (mode de dépannage)" {
insmod ext2
set root=(hd0,2)
search --no-floppy --fs-uuid --set c5a6e206-dac1-45ca-8a21-1216fbc16473
linux //vmlinuz-2.6.32-trunk-686-bigmem root=UUID=cfe65d23-6e74-407b-af61-a80d40eff118 ro single ipv6.disable=1
initrd //initrd.img-2.6.32-trunk-686-bigmem
}
menuentry "Debian GNU/Linux, avec Linux 2.6.32-trunk-amd64" {
insmod ext2
set root=(hd0,2)
search --no-floppy --fs-uuid --set c5a6e206-dac1-45ca-8a21-1216fbc16473
linux //vmlinuz-2.6.32-trunk-amd64 root=UUID=cfe65d23-6e74-407b-af61-a80d40eff118 ro ipv6.disable=1 quiet
initrd //initrd.img-2.6.32-trunk-amd64
}
menuentry "Debian GNU/Linux, avec Linux 2.6.32-trunk-amd64 (mode de dépannage)" {
insmod ext2
set root=(hd0,2)
search --no-floppy --fs-uuid --set c5a6e206-dac1-45ca-8a21-1216fbc16473
linux //vmlinuz-2.6.32-trunk-amd64 root=UUID=cfe65d23-6e74-407b-af61-a80d40eff118 ro single ipv6.disable=1
initrd //initrd.img-2.6.32-trunk-amd64
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Debian GNU/Linux, avec Linux 2.6.32-trunk-686-bigmem (on /dev/sda3)" {
insmod ext2
set root=(hd0,2)
search --no-floppy --fs-uuid --set c5a6e206-dac1-45ca-8a21-1216fbc16473
linux //vmlinuz-2.6.32-trunk-686-bigmem root=UUID=cfe65d23-6e74-407b-af61-a80d40eff118 ro ipv6.disable=1 quiet
initrd //initrd.img-2.6.32-trunk-686-bigmem
}
menuentry "Debian GNU/Linux, avec Linux 2.6.32-trunk-686-bigmem (mode de dépannage) (on /dev/sda3)" {
insmod ext2
set root=(hd0,2)
search --no-floppy --fs-uuid --set c5a6e206-dac1-45ca-8a21-1216fbc16473
linux //vmlinuz-2.6.32-trunk-686-bigmem root=UUID=cfe65d23-6e74-407b-af61-a80d40eff118 ro single ipv6.disable=1
initrd //initrd.img-2.6.32-trunk-686-bigmem
}
menuentry "Debian GNU/Linux, avec Linux 2.6.32-trunk-amd64 (on /dev/sda3)" {
insmod ext2
set root=(hd0,2)
search --no-floppy --fs-uuid --set c5a6e206-dac1-45ca-8a21-1216fbc16473
linux //vmlinuz-2.6.32-trunk-amd64 root=UUID=cfe65d23-6e74-407b-af61-a80d40eff118 ro ipv6.disable=1 quiet
initrd //initrd.img-2.6.32-trunk-amd64
}
menuentry "Debian GNU/Linux, avec Linux 2.6.32-trunk-amd64 (mode de dépannage) (on /dev/sda3)" {
insmod ext2
set root=(hd0,2)
search --no-floppy --fs-uuid --set c5a6e206-dac1-45ca-8a21-1216fbc16473
linux //vmlinuz-2.6.32-trunk-amd64 root=UUID=cfe65d23-6e74-407b-af61-a80d40eff118 ro single ipv6.disable=1
initrd //initrd.img-2.6.32-trunk-amd64
}
menuentry "Julien - Linux 2.6.32-trunk-amd64 (on /dev/sda3)" {
insmod ext2
set root=(hd0,2)
search --no-floppy --fs-uuid --set c5a6e206-dac1-45ca-8a21-1216fbc16473
linux /vmlinuz-2.6.32-trunk-amd64 root=/dev/sda1 ro quiet rootfstype=ext4
initrd /initrd.img-2.6.32-trunk-amd64
}
menuentry "Julien - Linux 2.6.32-trunk-686-bigmem (on /dev/sda3)" {
insmod ext2
set root=(hd0,2)
search --no-floppy --fs-uuid --set c5a6e206-dac1-45ca-8a21-1216fbc16473
linux /vmlinuz-2.6.32-trunk-686-bigmem root=/dev/sda3 ro ipv6.disable=1 quiet
initrd /initrd.img-2.6.32-trunk-686-bigmem
}
### 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.
menuentry "Windows Vista (USB)" {
insmod ntfs
set root=(hd1,1)
search --no-floppy -label VISTA
chainloader +1
}
menuentry "Julien - Linux 2.6.32-trunk-amd64" {
insmod ext2
set root=(hd0,2)
linux /vmlinuz-2.6.32-trunk-amd64 root=/dev/sda1 ro ipv6.disable=1 quiet rootfstype=ext4
initrd /initrd.img-2.6.32-trunk-amd64
}
menuentry "Julien - Linux 2.6.32-trunk-686-bigmem" {
insmod ext2
set root=(hd0,2)
linux /vmlinuz-2.6.32-trunk-686-bigmem root=/dev/sda3 ro ipv6.disable=1 quiet
initrd /initrd.img-2.6.32-trunk-686-bigmem
}
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/40_custom-OLD ###
# 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-OLD ###
*********************** END /boot/grub/grub.cfg
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-trunk-amd64 (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.28 Debian configuration management sy
ii grub-common 1.98~20100101-1 GRand Unified Bootloader, version
ii libc6 2.10.2-2 GNU C Library: Shared libraries
ii ucf 3.0025 Update Configuration File: preserv
grub-pc recommends no packages.
Versions of packages grub-pc suggests:
ii desktop-base 5.0.5 common files for the Debian Deskto
-- debconf information:
grub2/kfreebsd_cmdline:
* grub2/linux_cmdline:
grub-pc/chainload_from_menu.lst: true
grub-pc/kopt_extracted: false
* grub-pc/install_devices: /dev/sda
grub-pc/postrm_purge_boot_grub: false
grub2/kfreebsd_cmdline_default: quiet
* grub2/linux_cmdline_default: quiet
More information about the Pkg-grub-devel
mailing list