summaryrefslogtreecommitdiffstats
path: root/perl-install/raid.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/raid.pm')
-rw-r--r--perl-install/raid.pm7
1 files changed, 3 insertions, 4 deletions
diff --git a/perl-install/raid.pm b/perl-install/raid.pm
index 93ec9748e..11284a90a 100644
--- a/perl-install/raid.pm
+++ b/perl-install/raid.pm
@@ -182,6 +182,9 @@ sub free_mds {
sub detect_during_install {
my (@parts) = @_;
+ foreach (@{allmodules()}) {
+ eval { modules::load($_) };
+ }
detect_during_install_once(@parts);
detect_during_install_once(@parts) if active_mds(); #- try again to detect RAID 10
@@ -198,10 +201,6 @@ sub detect_during_install_once {
(map { "/dev/$_" } active_mds()),
map { devices::make($_->{device}) } @parts), "\n");
run_program::run('mdadm', '>>', '/etc/mdadm.conf', '--examine', '--scan');
-
- foreach (@{allmodules()}) {
- eval { modules::load(module($_)) };
- }
run_program::run('mdadm', '--assemble', '--scan');
}