running into raid0 and grub-install bugs on lenny

Andreas Schockenhoff asc at gmx.li
Sat Apr 25 11:18:32 CEST 2009


Hi,

Am Freitag, den 24.04.2009, 22:42 +0200 schrieb Thomas Lange:
> >>>>> On Fri, 24 Apr 2009 11:36:12 -0700, William Francis <wfrancis at gmail.com> said:
> 
>     > grub-probe: error: Cannot open `/boot/grub/device.map'
>     > /usr/sbin/grub-install: line 374: [: =: unary operator expected
>     > Installation finished. No error reported.
> 
>     > Is there a work around for this problem?
> Just ignore this error. I also have this error message, but grub works
> perfectly. Have a look at bug report #513216.

If you will fix it change [ against [[ in the
nfsroot /usr/sbin/grub-install:  

The prepare line looks like that: 
if [[ `grub-probe -t fs ${grubdir}` = "xfs" ]] ; then

But as Thomas says you can: "Just ignore this error!"

But: grub-probe: error: Cannot open `/boot/grub/device.map'
may be a problem.  
Have you also upgraded the pxe boot with fai-chboot or a editor. 
If not you can run into a problem with a old kernel and newer modules
in the nfs-root. But I have seen other error messages as I was fighting
with this problem. 

To put a boot sector on all raid drives you need a patched: 
/config/files/boot/grub/menu.lst/postinst

Or is there are a other solution?

regards Andreas



More information about the linux-fai mailing list