summaryrefslogtreecommitdiffstats
path: root/perl-install/raid.pm
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mandriva.org>2009-10-19 12:17:45 +0000
committerPascal Terjan <pterjan@mandriva.org>2009-10-19 12:17:45 +0000
commit2df9667aa6108df2855b2e1c25c6f70f1ab32003 (patch)
treeab3a1e492c25e64ffb8a0819efe2c0e4d8cce584 /perl-install/raid.pm
parentea522642b95780da50a6ae1a3de8d6e064954a90 (diff)
downloaddrakx-2df9667aa6108df2855b2e1c25c6f70f1ab32003.tar
drakx-2df9667aa6108df2855b2e1c25c6f70f1ab32003.tar.gz
drakx-2df9667aa6108df2855b2e1c25c6f70f1ab32003.tar.bz2
drakx-2df9667aa6108df2855b2e1c25c6f70f1ab32003.tar.xz
drakx-2df9667aa6108df2855b2e1c25c6f70f1ab32003.zip
fix raid detection during install (#54706)
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');
}