Bug#486804: grub-pc: also occurs with /boot on different lv than /

Simon Rutishauser simon.rutishauser at web.de
Wed Jun 18 17:23:41 UTC 2008


Package: grub-pc
Version: 1.96+20080617-1
Followup-For: Bug #486804

I can confirm the existence of this bug for a setup with / on lvm and 
/boot on a separate non-lv partition.

In this case root is set by default to /s lv:
set root=(debian-root)

However changing it to the correct boot partition doesn't help either:
set root=(hd0,1)

It only works when adding the correct root=-line for each grub.lst item 
manually.

-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/mapper/debian-root / jfs rw,noatime 0 0
/dev/mapper/debian-root /dev/.static/dev jfs rw 0 0
/dev/sda1 /boot ext2 rw,sync,noatime,errors=continue 0 0
/dev/mapper/debian-home /home jfs rw,noatime 0 0
/dev/mapper/debian-root /opt/sid-ia32/tmp jfs rw,noatime 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/update-grub using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
set default=0
set timeout=5
set root=(hd0,1)
if font /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 root=(debian-root)
insmod png
if background_image /usr/share/images/desktop-base/debian-blueish-wallpaper-640x480.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_hurd ###
### END /etc/grub.d/10_hurd ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Debian GNU/Linux, linux 2.6.25" {
	linux	/vmlinuz-2.6.25 root=/dev/mapper/debian-root ro  
	initrd	/initrd.img-2.6.25
}
menuentry "Debian GNU/Linux, linux 2.6.25 (single-user mode)" {
	linux	/vmlinuz-2.6.25 root=/dev/mapper/debian-root ro single 
	initrd	/initrd.img-2.6.25
}
menuentry "Debian GNU/Linux, linux 2.6.24-1-amd64" {
	linux	/vmlinuz-2.6.24-1-amd64 root=/dev/mapper/debian-root ro  
	initrd	/initrd.img-2.6.24-1-amd64
}
menuentry "Debian GNU/Linux, linux 2.6.24-1-amd64 (single-user mode)" {
	linux	/vmlinuz-2.6.24-1-amd64 root=/dev/mapper/debian-root ro single 
	initrd	/initrd.img-2.6.24-1-amd64
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_openbsd ###
menuentry "OpenBSD" {
	set root=(hd0,2)
	chainloader +1
}
### END /etc/grub.d/20_openbsd ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows XP Professional x64 Edition (on /dev/sda4)" {
	set root=(hd0,4)
	chainloader +1
}
menuentry "Debian GNU/Linux (lenny/sid) (on /dev/sda5)" {
	set root=(hd0,5)
	linux /boot/vmlinuz-2.6.25-2-amd64 root=/dev/sda5
	initrd /boot/initrd.img-2.6.25-2-amd64
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_winxp ###
menuentry "Windows XP Professional amd64" {
        set root=(hd0,4)
        chainloader +1
}
### END /etc/grub.d/40_winxp ###
*********************** END /boot/grub/grub.cfg

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (400, 'experimental')
Architecture: amd64 (x86_64)

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

Versions of packages grub-pc depends on:
ii  debconf [debconf-2.0]    1.5.22          Debian configuration management sy
ii  grub-common              1.96+20080617-1 GRand Unified Bootloader, version 
ii  libc6                    2.7-12          GNU C Library: Shared libraries
ii  liblzo2-2                2.03-1          data compression library
ii  libncurses5              5.6+20080614-1  Shared libraries for terminal hand

grub-pc recommends no packages.

-- debconf information excluded





More information about the Pkg-grub-devel mailing list