From: Neil Brown Date: Thu, 15 May 2008 05:50:50 +0000 (+1000) Subject: Don't try the auto-detect test when md_mod is a module X-Git-Tag: mdadm-2.6.5~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54097ce72bacee68e5ceb5914ea3414f9688f282;p=thirdparty%2Fmdadm.git Don't try the auto-detect test when md_mod is a module ....as this cannot work. --- diff --git a/tests/07autodetect b/tests/07autodetect index 3e338f86..5460c5bf 100644 --- a/tests/07autodetect +++ b/tests/07autodetect @@ -5,6 +5,13 @@ # put a partition on each, create an array, and see if we can # use autodetect to restart the array. +if lsmod | grep md_mod > /dev/null 2>&1 +then + echo md is a module - cannot test autodetect + exit 0 +fi + + mdadm -CR $mdp0 -l0 -f -n1 $dev0 mdadm -CR $mdp1 -l0 -f -n1 $dev1 sfdisk $mdp0 >&2 << END