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.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/perl-install/raid.pm b/perl-install/raid.pm
index 5252511a0..e681a4649 100644
--- a/perl-install/raid.pm
+++ b/perl-install/raid.pm
@@ -94,6 +94,10 @@ sub updateSize {
};
}
+sub allmodules {
+ [ 'raid0', 'raid1', 'raid10', 'raid456' ];
+}
+
sub module {
my ($part) = @_;
my $level = $part->{level};
@@ -195,7 +199,7 @@ sub detect_during_install_once {
map { devices::make($_->{device}) } @parts), "\n");
run_program::run('mdadm', '>>', '/etc/mdadm.conf', '--examine', '--scan');
- foreach (@{parse_mdadm_conf(scalar cat_('/etc/mdadm.conf'))->{ARRAY}}) {
+ foreach (@{allmodules()}) {
eval { modules::load(module($_)) };
}
run_program::run('mdadm', '--assemble', '--scan');