summaryrefslogtreecommitdiffstats
path: root/perl-install/raid.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-09-16 18:35:07 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-09-16 18:35:07 +0000
commit8c7c8f9e1497f80cbe9bbdc1bf0b8552b7dd88cb (patch)
tree9521630ef9f9857cc3bb5c5ce606a958de4516cf /perl-install/raid.pm
parentcf616f12521a0f539e4f02f70d0210beb0102320 (diff)
downloaddrakx-backup-do-not-use-8c7c8f9e1497f80cbe9bbdc1bf0b8552b7dd88cb.tar
drakx-backup-do-not-use-8c7c8f9e1497f80cbe9bbdc1bf0b8552b7dd88cb.tar.gz
drakx-backup-do-not-use-8c7c8f9e1497f80cbe9bbdc1bf0b8552b7dd88cb.tar.bz2
drakx-backup-do-not-use-8c7c8f9e1497f80cbe9bbdc1bf0b8552b7dd88cb.tar.xz
drakx-backup-do-not-use-8c7c8f9e1497f80cbe9bbdc1bf0b8552b7dd88cb.zip
use new mkdir_p, rm_rf and cp_af from MDK::Common
Diffstat (limited to 'perl-install/raid.pm')
-rw-r--r--perl-install/raid.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/perl-install/raid.pm b/perl-install/raid.pm
index 2732beb34..0d0a8720a 100644
--- a/perl-install/raid.pm
+++ b/perl-install/raid.pm
@@ -10,7 +10,6 @@ use common;
use partition_table qw(:types);
use run_program;
use devices;
-use commands;
use modules;
use fs;
@@ -158,7 +157,7 @@ sub prepare_prefixed {
my ($raids, $prefix) = @_;
$raids or return;
- eval { commands::cp("-f", "/etc/raidtab", "$prefix/etc/raidtab") };
+ eval { cp_af("/etc/raidtab", "$prefix/etc/raidtab") };
foreach (grep {$_} @$raids) {
devices::make("$prefix/dev/$_->{device}") foreach @{$_->{disks}};
}