diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2002-09-24 17:10:17 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2002-09-24 17:10:17 +0000 |
commit | b4f34cab421f370225f565040128394d6b59da88 (patch) | |
tree | b9eaea33c4b9e045de7a83e450bdc9ff54c9dada /perl-install/detect_devices.pm | |
parent | b1675dff9e409b53d0275fed6afe3a761867a57c (diff) | |
download | drakx-b4f34cab421f370225f565040128394d6b59da88.tar drakx-b4f34cab421f370225f565040128394d6b59da88.tar.gz drakx-b4f34cab421f370225f565040128394d6b59da88.tar.bz2 drakx-b4f34cab421f370225f565040128394d6b59da88.tar.xz drakx-b4f34cab421f370225f565040128394d6b59da88.zip |
fix raidAutoStartRaidtab crushing /etc/raidtab
Diffstat (limited to 'perl-install/detect_devices.pm')
-rw-r--r-- | perl-install/detect_devices.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm index c60e356c2..204e4f1cc 100644 --- a/perl-install/detect_devices.pm +++ b/perl-install/detect_devices.pm @@ -694,15 +694,17 @@ sub raidAutoStartIoctl { sub raidAutoStartRaidtab { my (@parts) = @_; + $::isInstall or return; require raid; #- faking a raidtab, it seems to be working :-))) #- (choosing any inactive md) raid::inactivate_all(); foreach (@parts) { my ($nb) = grep { !raid::is_active("md$_") } 0..7; - output("/etc/raidtab", "raiddev /dev/md$nb\n device " . devices::make($_->{device}) . "\n"); - run_program::run('raidstart', devices::make("md$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")); } + unlink "/tmp/raidtab"; } sub raidAutoStart { |