Don't try the auto-detect test when md_mod is a module

....as this cannot work.
This commit is contained in:
Neil Brown 2008-05-15 15:50:50 +10:00
parent ff1f6545db
commit 54097ce72b
1 changed files with 7 additions and 0 deletions

View 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