Bug#423648: grub-pc: md/lvm path check in getroot.c breaks booting

Sam Morris sam at robots.org.uk
Mon May 14 08:59:15 UTC 2007


On Mon, 2007-05-14 at 10:54 +0200, Robert Millan wrote:
> On Sun, May 13, 2007 at 08:32:58PM +0100, Sam Morris wrote:
> > > Can you try arranging this code to include the missing "/dev/" and report if
> > > everything still works?
> > 
> > Now this is more interesting. I no longer have the broken menu that I
> > mentioned in the other bug report! However, when I actually select one
> > of the entries, I get 'error: you need to load the kernel first'.
> > 
> > This seems to be caused by 'root' not being set in grub.cfg any more. Or
> > rather, it's set to an empty string. Looking closely at update-grub, I
> > guess changing grub_guess_root_device broke other parts of grub-probe:
> > 
> >         + echo 'Updating /boot/grub/grub.cfg ...'
> >         Updating /boot/grub/grub.cfg ...
> >         + cat
> >         ++ grub-probe --target=device /boot/grub
> >         + export GRUB_DEVICE=/dev/md0
> >         + GRUB_DEVICE=/dev/md0
> >         ++ grub-probe --target=drive /boot/grub
> >         cannot find a GRUB drive for /dev/md0.
> 
> Check your device.map.  If it's broken, check if your newly modified
> grub-mkdevicemap generates the right thing.

Adding '(md0) /dev/md0' triggers another error:
'error: /boot/grub/device.map:5: Bad device name'.

-- 
Sam Morris
http://robots.org.uk/

PGP key id 1024D/5EA01078
3412 EA18 1277 354B 991B  C869 B219 7FDB 5EA0 1078
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20070514/ed0266d3/attachment.pgp 


More information about the Pkg-grub-devel mailing list