Bug#465033: grub-pc: grub-setup fails to open the root-device if it is on a LVM

Michael Guntsche mike at it-loops.com
Sun Feb 10 10:37:50 UTC 2008


Package: grub-pc
Version: 1.96+20080209-1
Severity: important

With  build 20080209 grub-setup is no longer able to install on a
lvm root-device.

With the previous version (20080203) it worked.

grub-setup -vvvv -r '(fatoftheland-main)' '(hd0)'grub-setup: info:
prefix = /boot/grub
grub-setup: info: getting the size of /boot/grub/boot.img
grub-setup: info: reading /boot/grub/boot.img
grub-setup: info: getting the size of /boot/grub/boot.img
grub-setup: info: getting the size of /boot/grub/core.img
grub-setup: info: reading /boot/grub/core.img
grub-setup: info: getting the size of /boot/grub/core.img
grub-setup: info: the size of hd0 is 781422768
grub-setup: info: setting the root device to `fatoftheland-main'
grub-setup: info: opening the device `/dev/sda'
grub-setup: info: will embed the core image into after the MBR
grub-setup: info: dos partition is -2, bsd partition is -2, prefix is
(fatoftheland-main)/boot/grub
grub-setup: info: opening the device `/dev/sda'
grub-setup: info: opening the device `/dev/sda'
grub-setup: info: opening the device `/dev/sda'
grub-setup: info: opening the device `/dev/sda'

With the current version I get:

grub-setup -vvvv -r '(fatoftheland-main)' '(hd0)'
grub-setup: info: prefix = /boot/grub
grub-setup: info: getting the size of /boot/grub/boot.img
grub-setup: info: reading /boot/grub/boot.img
grub-setup: info: getting the size of /boot/grub/boot.img
grub-setup: info: getting the size of /boot/grub/core.img
grub-setup: info: reading /boot/grub/core.img
grub-setup: info: getting the size of /boot/grub/core.img
/build/buildd/grub2-1.96+20080209/kern/disk.c:220: Opening
`fatoftheland-main'...
/build/buildd/grub2-1.96+20080209/kern/disk.c:299: Opening
`fatoftheland-main' failed.
/build/buildd/grub2-1.96+20080209/kern/disk.c:312: Closing
`fatoftheland-main'.

The core.img file is the same.

-- Package-specific info:

*********************** BEGIN /proc/mounts
rootfs / rootfs rw 0 0
none /sys sysfs rw,nosuid,nodev,noexec 0 0
none /proc proc rw,nosuid,nodev,noexec 0 0
udev /dev tmpfs rw 0 0
/dev/mapper/fatoftheland-main / ext3 rw,relatime,errors=remount-ro,data=ordered 0 0
/dev/mapper/fatoftheland-main /dev/.static/dev ext3 rw,errors=remount-ro,data=ordered 0 0
tmpfs /lib/init/rw tmpfs rw,nosuid 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0
devpts /dev/pts devpts rw,nosuid,noexec 0 0
/dev/mapper/fatoftheland-home /home ext3 rw,relatime,data=ordered 0 0
/dev/mapper/fatoftheland-var /var ext3 rw,relatime,data=ordered 0 0
/dev/mapper/fatoftheland-inter /var/media ext3 rw,relatime,acl,data=ordered 0 0
nfsd /proc/fs/nfsd nfsd rw 0 0
rpc_pipefs /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/device.map
(hd0)	/dev/sda
(hd1)	/dev/sdb
*********************** END /boot/grub/device.map

*********************** BEGIN /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/update-grub using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
insmod lvm
set default=0
set timeout=5
set root=(fatoftheland-main)
if font (fatoftheland-main)/usr/share/grub/unicode.pff ; then
  set gfxmode=640x480
  insmod gfxterm
  insmod vbe
  terminal gfxterm
fi
### 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_hurd ###
### END /etc/grub.d/10_hurd ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Debian GNU/Linux, linux 2.6.24" {
	linux	(fatoftheland-main)/boot/vmlinuz-2.6.24 root=/dev/mapper/fatoftheland-main ro 
	initrd	(fatoftheland-main)/boot/initrd.img-2.6.24
}
menuentry "Debian GNU/Linux, linux 2.6.24 (single-user mode)" {
	linux	(fatoftheland-main)/boot/vmlinuz-2.6.24 root=/dev/mapper/fatoftheland-main ro single 
	initrd	(fatoftheland-main)/boot/initrd.img-2.6.24
}
menuentry "Debian GNU/Linux, linux 2.6.23.13" {
	linux	(fatoftheland-main)/boot/vmlinuz-2.6.23.13 root=/dev/mapper/fatoftheland-main ro 
	initrd	(fatoftheland-main)/boot/initrd.img-2.6.23.13
}
menuentry "Debian GNU/Linux, linux 2.6.23.13 (single-user mode)" {
	linux	(fatoftheland-main)/boot/vmlinuz-2.6.23.13 root=/dev/mapper/fatoftheland-main ro single 
	initrd	(fatoftheland-main)/boot/initrd.img-2.6.23.13
}
menuentry "Debian GNU/Linux, linux 2.6.23.12" {
	linux	(fatoftheland-main)/boot/vmlinuz-2.6.23.12 root=/dev/mapper/fatoftheland-main ro 
	initrd	(fatoftheland-main)/boot/initrd.img-2.6.23.12
}
menuentry "Debian GNU/Linux, linux 2.6.23.12 (single-user mode)" {
	linux	(fatoftheland-main)/boot/vmlinuz-2.6.23.12 root=/dev/mapper/fatoftheland-main ro single 
	initrd	(fatoftheland-main)/boot/initrd.img-2.6.23.12
}
### END /etc/grub.d/10_linux ###
*********************** END /boot/grub/grub.cfg

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

Kernel: Linux 2.6.24
Locale: LANG=C, LC_CTYPE=de_AT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages grub-pc depends on:
ii  base-files                4.0.2          Debian base system miscellaneous f
ii  debconf [debconf-2.0]     1.5.19         Debian configuration management sy
ii  libc6                     2.7-6          GNU C Library: Shared libraries
ii  liblzo2-2                 2.02-3         data compression library
ii  libncurses5               5.6+20080203-1 Shared libraries for terminal hand

grub-pc recommends no packages.

-- debconf information:
  grub-pc/chainload_from_menu.lst: true





More information about the Pkg-grub-devel mailing list