Bug#486804: grub-pc: grub.cfg has wrong root device set on LVM with /usr on a different lv than /

Florian Kriener florian at kriener.org
Fri Jun 20 15:48:10 UTC 2008


On Wednesday 18 June 2008 20:03:10 Robert Millan wrote:
> On Wed, Jun 18, 2008 at 11:01:07AM +0200, florian kriener wrote:
> > I suspect
> >
> >    set root=(vg-usr)
> >
> > to be the culprit here.
>
> First of all, I see that you don't have a "insmod lvm" even though it
> should be there.  I think the attached patch should fix that (please
> confirm; you can apply directly to update-grub_lib).

Sorry, it does not work. (By the way, it contains a bug.) But grub-probe does 
not work either.

> > ### BEGIN /etc/grub.d/05_debian_theme ###
> > set root=(vg-usr)
> > search --fs-uuid --set b22901d9-92ac-4e02-9b5b-9225451ab970
> > insmod png
> > if background_image
> > /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 ###
>
> Then we have 05_debian_theme setting root and not setting it back to what
> it should be to access /boot, and I think I know why.  Attached patch
> includes a hunk to address that, too (please confirm).

That hunk works.








More information about the Pkg-grub-devel mailing list