From: Christian Hofstaedtler Date: Wed, 16 Nov 2011 11:06:26 +0000 (+0100) Subject: Load md_mod if /proc/mdstat isn't there X-Git-Tag: v0.9.34~8 X-Git-Url: https://git.grml.org/?p=grml-autoconfig.git;a=commitdiff_plain;h=b9c918691204315ce55c54a19ceca1ab12964f7b;ds=sidebyside Load md_mod if /proc/mdstat isn't there --- diff --git a/autoconfig.functions b/autoconfig.functions index ff1052f..3ec2ad3 100755 --- a/autoconfig.functions +++ b/autoconfig.functions @@ -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 + [ -e /proc/mdstat ] || modprobe md_mod if ! [ -x /sbin/mdadm ] ; then eerror "mdadm not available, can not execute it." ; eend 1 else