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.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}};
}