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.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/raid.pm b/perl-install/raid.pm
index df59fb02e..79476e956 100644
--- a/perl-install/raid.pm
+++ b/perl-install/raid.pm
@@ -247,7 +247,7 @@ sub write_conf {
my @devices = uniq(map { devices::make($_->{device}) } map { @{$_->{disks}} } @$raids);
- output("$::prefix/etc/mdadm.conf",
+ output($::isInstall ? "$::prefix/etc/mdadm.conf" : "/etc/mdadm.conf",
join(' ', 'DEVICE', @devices) . "\n",
map { "ARRAY " . devices::make($_->{device}) . " UUID=$_->{UUID} auto=yes\n" } @$raids);
}