grub-install fails on software RAID

Thomas Lange lange at informatik.uni-koeln.de
Tue Oct 29 21:52:25 CET 2013


I just installed a new webserver which uses RAID1 for / but
I have no separate /boot on this machine.

I've added two lines to GRUB_PC/10-setup:

faiserver[.../scripts/GRUB_PC]> ~/fai-4.1/examples/simple/scripts/GRUB_PC/
15,17d14
< # see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=606035
< GROOT=$(echo $GROOT | sed 's:md/:md:g')
< 


And I also added this script GRUB_PC/20-mdadm-fix 

if ifclass webserver; then
   $ROOTCMD grub-install --no-floppy '(hd1)'
   $ROOTCMD grub-install --no-floppy '(hd2)'
fi

Not sure, if there's an easier way.


P.S.:
If you use dracut instead of initramfs-tools you have to add rd.auto
to the kernel command line, otherwise no RAID devices will be
activated by dracut.

-- 
regards Thomas


More information about the linux-fai mailing list