summaryrefslogtreecommitdiffstats
path: root/perl-install/detect_devices.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-01-29 01:14:41 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-01-29 01:14:41 +0000
commit76146269a480fe664fc4a3280dd78c9070496b06 (patch)
tree822e433cfc224ebea802bf1f4aee729b503e6246 /perl-install/detect_devices.pm
parent00723acc13494a6752772d017908b23719a5243d (diff)
downloaddrakx-backup-do-not-use-76146269a480fe664fc4a3280dd78c9070496b06.tar
drakx-backup-do-not-use-76146269a480fe664fc4a3280dd78c9070496b06.tar.gz
drakx-backup-do-not-use-76146269a480fe664fc4a3280dd78c9070496b06.tar.bz2
drakx-backup-do-not-use-76146269a480fe664fc4a3280dd78c9070496b06.tar.xz
drakx-backup-do-not-use-76146269a480fe664fc4a3280dd78c9070496b06.zip
software raid (mdX) can go up to md31
Diffstat (limited to 'perl-install/detect_devices.pm')
-rw-r--r--perl-install/detect_devices.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm
index 5487a7ca2..28898576c 100644
--- a/perl-install/detect_devices.pm
+++ b/perl-install/detect_devices.pm
@@ -757,7 +757,7 @@ sub raidAutoStartRaidtab {
#- (choosing any inactive md)
raid::inactivate_all();
foreach (@parts) {
- my $nb = find { !raid::is_active("md$_") } 0..7;
+ my $nb = find { !raid::is_active("md$_") } 0 .. raid::max_nb();
output("/tmp/raidtab", "raiddev /dev/md$nb\n device " . devices::make($_->{device}) . "\n");
run_program::run('raidstart', '-c', "/tmp/raidtab", devices::make("md$nb"));
}