<div dir="ltr">I use a script to bypass partitioning since we have servers with 1-6 disks.  Anything with more than 1 disk gets raided, so I have to pass the following to /tmp/fai/disk_var.sh which is read in by the grub setup.  Make sure you are using 1.2 metadata for your array. You don't have to bypass partitioning, but a partition hook like below can populate the proper dev path for MD (/dev/md/NUM) so grub doesn't look for the link that doesn't exist (/dev/md0 -> /dev/md/0)<div>
<br></div><div>#tail partition.NODECLASS:<br><div><br></div><div><div>if [ "$PTYPE" == "fd" ]; then</div><div>echo "BOOT_DEVICE=/dev/md/0" > /tmp/fai/disk_var.sh<br></div><div>else</div><div>
echo "BOOT_DEVICE=/dev/${diskarray[0]}1" > /tmp/fai/disk_var.sh<br></div><div>fi</div><div><br></div><div><br></div><div><br></div><div><br></div><br></div><div><br></div></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Wed, Oct 30, 2013 at 7:25 AM, <a href="mailto:ol@v-brinkmann.de">ol@v-brinkmann.de</a> <span dir="ltr"><<a href="mailto:ol@v-brinkmann.de" target="_blank">ol@v-brinkmann.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
    
 
  
 
 <div>
 
  <div>
   Thomas Lange <<a href="mailto:lange@informatik.uni-koeln.de" target="_blank">lange@informatik.uni-koeln.de</a>> hat am 29. Oktober 2013 um 22:07 geschrieben:
  </div><div class="im"> 
  <div>
    
  </div> 
  <div>
   > > < GROOT=$(echo $GROOT | sed 's:md/:md:g')
   <br>> 
   <br>> I've just read the git log. This minor patch is not needed any more in
   <br>> wheezy. That's why these lines were removed on Sep 8th. I guess you
   <br>> still have them in your script.
   <br>
   <br>
  </div> 
  </div><div>
   Yes, they are still there. But I don't think they do any harm, as the result of the call
  </div> 
  <div>
    
  </div> 
  <div>
       $ROOTCMD grub-probe -tdrive -d $BOOT_DEVICE
  </div> 
  <div>
    
  </div> 
  <div>
   is "(md0)". It's
  </div> 
  <div>
    
  </div> 
  <div>
       $ROOTCMD grub-install --no-floppy "(md0)"
  </div> 
  <div>
    
  </div> 
  <div>
   that leads to
  </div> 
  <div>
    
  </div> 
  <div>
   <span style="font-size:9pt">    /usr/sbin/grub-probe: Fehler: no such disk.</span>
  </div> 
  <div>
   <span style="font-size:9pt">    Auto-detection of a filesystem of /dev/md0 failed.</span>
  </div> 
  <div>
   <span style="font-size:9pt"> </span>
  </div> 
  <div>
   <span style="font-size:9pt">The same error occurs if I replace "(md0)" with "(hd0)" or "(hd1)", the only entries in /target/boot/grub/device.map.</span>
  </div><div class="im"> 
  <div>
   <span style="font-size:9pt"> </span>
  </div> 
  <div>
   <span style="font-size:9pt"><span>> If you use dracut instead of initramfs-tools you have to add rd.auto</span></span>
  </div> 
  <div>
   <span style="font-size:9pt"><span>> to the kernel command line, otherwise no RAID devices will be</span></span>
  </div> 
  <div>
   <span style="font-size:9pt"><span>> activated by dracut.</span></span>
  </div> 
  <div>
   <span style="font-size:9pt"><span> </span></span>
  </div> 
  </div><div>
   <span style="font-size:9pt"><span>I did so, but that didn't improve the situation.</span></span>
  </div> 
  <div>
   <span style="font-size:9pt"><span> </span></span>
  </div> 
  <div>
   <span style="font-size:9pt"><span>Olav</span></span>
  </div>
 
</div></blockquote></div><br></div>