workaround a hald interaction and quiet cleanup

The 'udevadm settle' call appears to resolve:

mdadm: failed to stop array /dev/md127: Device or resource busy
Perhaps a running process, mounted filesystem or active volume group?

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
This commit is contained in:
Dan Williams 2008-12-08 16:59:18 -07:00
parent 4b7a9ee3a1
commit 2952742d32
1 changed files with 2 additions and 1 deletions

3
test
View File

@ -40,7 +40,8 @@ mdsize11=19992
mdsize12=19988
cleanup() {
$mdadm -Ss
udevadm settle
$mdadm -Ssq
for d in 0 1 2 3 4 5 6 7
do
losetup -d /dev/loop$d ; # rm -f $targetdir/mdtest$d