summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/NEWS5
-rw-r--r--perl-install/raid.pm2
2 files changed, 6 insertions, 1 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS
index aa6b3c8c4..2626d271b 100644
--- a/perl-install/NEWS
+++ b/perl-install/NEWS
@@ -1,3 +1,8 @@
+- diskdrake:
+ o Only write raid config into $::prefix if we are in install mode,
+ this fixes draklive-install which should write to /etc directly as
+ $::prefix does not yet exist (#49632)
+
Version 12.25 - 08 April 2009
- harddrake service:
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);
}