]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Don't try the auto-detect test when md_mod is a module
authorNeil Brown <neilb@suse.de>
Thu, 15 May 2008 05:50:50 +0000 (15:50 +1000)
committerNeil Brown <neilb@suse.de>
Thu, 15 May 2008 05:50:50 +0000 (15:50 +1000)
....as this cannot work.

tests/07autodetect

index 3e338f860243651b6717abae25e254d74299fc61..5460c5bfe062a0c09335c0921714fb98f9869518 100644 (file)
@@ -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