Load md_mod if /proc/mdstat isn't there
authorChristian Hofstaedtler <ch@grml.org>
Wed, 16 Nov 2011 11:06:26 +0000 (12:06 +0100)
committerChristian Hofstaedtler <ch@grml.org>
Wed, 16 Nov 2011 11:06:26 +0000 (12:06 +0100)
autoconfig.functions

index ff1052f..3ec2ad3 100755 (executable)
@@ -1724,6 +1724,7 @@ config_swraid(){
      checkbootparam 'forensic' || checkbootparam 'raid=noautodetect' ; then
      ewarn "Skipping SW-RAID code as requested on boot commandline." ; eend 0
   else
      checkbootparam 'forensic' || checkbootparam 'raid=noautodetect' ; then
      ewarn "Skipping SW-RAID code as requested on boot commandline." ; eend 0
   else
+    [ -e /proc/mdstat ] || modprobe md_mod
     if ! [ -x /sbin/mdadm ] ; then
        eerror "mdadm not available, can not execute it." ; eend 1
     else
     if ! [ -x /sbin/mdadm ] ; then
        eerror "mdadm not available, can not execute it." ; eend 1
     else