Bug#486804: grub-pc: also fails with lvm root and non-lvm'ed /boot
Vagrant Cascadian
vagrant at freegeek.org
Thu Jun 19 01:54:06 UTC 2008
On Thu, Jun 19, 2008 at 12:29:26AM +0200, Robert Millan wrote:
> On Wed, Jun 18, 2008 at 01:10:26PM -0700, Vagrant Cascadian wrote:
> > Package: grub-pc
> > Version: 1.96+20080617-1
> > Followup-For: Bug #486804
> >
> > i'm encountering something similar to this bug report.
>
> Thank you. I sent a separate mail with a patch that supposedly fixes it.
> Please test if you can (you can get it from the bug log).
the patch didn't apply cleanly to the installed package (tried on both
/usr/lib/grub/update-grub_lib and /usr/lib/grub/i386-pc/update-grub_lib,
which appear to be identical files)...
so i manually applied the changes, and it appeared to work... although
there are now three "set root=" entries in grub.conf ... two that point
to (hd0,2), the location of the /boot partition, and the first still
points to (vg-root)... so that sounds a little quirky.
the good news is, now it actually boots without manual intervention.
here's the generated 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=(vg-root)
search --fs-uuid --set 7226d162-44f0-4567-ab8b-975e9f92a3e2
if font /usr/share/grub/unicode.pff ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
terminal gfxterm
fi
set root=(hd0,1)
search --fs-uuid --set 33bb99ad-215b-42a4-9b82-df7bba9211ba
insmod
### 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
set root=(hd0,1)
search --fs-uuid --set 33bb99ad-215b-42a4-9b82-df7bba9211ba
insmod
### 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-2-486" {
linux /vmlinuz-2.6.25-2-486 root=/dev/mapper/vg-root ro
initrd /initrd.img-2.6.25-2-486
}
menuentry "Debian GNU/Linux, linux 2.6.25-2-486 (single-user mode)" {
linux /vmlinuz-2.6.25-2-486 root=/dev/mapper/vg-root ro single
initrd /initrd.img-2.6.25-2-486
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
live well,
vagrant
More information about the Pkg-grub-devel
mailing list