summaryrefslogtreecommitdiffstats
path: root/perl-install/raid.pm
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mandriva.org>2009-09-03 14:39:07 +0000
committerPascal Terjan <pterjan@mandriva.org>2009-09-03 14:39:07 +0000
commit5fc81c088b47553a3b7b5169b6b757171075e66f (patch)
tree99125259d97007d3ed719f071888bc50686103ae /perl-install/raid.pm
parentdab3ab288325f9b960326c90d7b53953be009dad (diff)
downloaddrakx-5fc81c088b47553a3b7b5169b6b757171075e66f.tar
drakx-5fc81c088b47553a3b7b5169b6b757171075e66f.tar.gz
drakx-5fc81c088b47553a3b7b5169b6b757171075e66f.tar.bz2
drakx-5fc81c088b47553a3b7b5169b6b757171075e66f.tar.xz
drakx-5fc81c088b47553a3b7b5169b6b757171075e66f.zip
fix existing raid detection during install (#53159)
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');