summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-04-19 18:31:46 +0000
committerThierry Vignaud <tv@mageia.org>2012-04-19 18:31:46 +0000
commit853ec3243a697032ef5fa22613897b68877c2973 (patch)
tree67fc678897db497cd9ee18704cef38a941864814
parent8563da1a3ac0b1f0d47266add76bebed62e4887b (diff)
downloaddrakx-853ec3243a697032ef5fa22613897b68877c2973.tar
drakx-853ec3243a697032ef5fa22613897b68877c2973.tar.gz
drakx-853ec3243a697032ef5fa22613897b68877c2973.tar.bz2
drakx-853ec3243a697032ef5fa22613897b68877c2973.tar.xz
drakx-853ec3243a697032ef5fa22613897b68877c2973.zip
(stop_inactive_mds) split it out of detect_during_install()
(needed for next commit)
-rw-r--r--perl-install/raid.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/perl-install/raid.pm b/perl-install/raid.pm
index 5270d2218..8e551a888 100644
--- a/perl-install/raid.pm
+++ b/perl-install/raid.pm
@@ -191,7 +191,10 @@ sub detect_during_install {
}
detect_during_install_once(@parts);
detect_during_install_once(@parts) if active_mds(); #- try again to detect RAID 10
+ stop_inactive_mds();
+}
+sub stop_inactive_mds() {
foreach (inactive_mds()) {
log::l("$_ is an inactive md, we stop it to ensure it doesn't busy devices");
run_program::run('mdadm', '--stop', devices::make($_));