summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-08-08 08:19:04 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-08-08 08:19:04 +0000
commitd7dacc1beeddce232e79f5d4a7b114f2a84816a5 (patch)
treea57cadfa46334068107128c80050565af0091d02 /perl-install
parent21deecac0f6b1341fc7e09558462179870a90801 (diff)
downloaddrakx-d7dacc1beeddce232e79f5d4a7b114f2a84816a5.tar
drakx-d7dacc1beeddce232e79f5d4a7b114f2a84816a5.tar.gz
drakx-d7dacc1beeddce232e79f5d4a7b114f2a84816a5.tar.bz2
drakx-d7dacc1beeddce232e79f5d4a7b114f2a84816a5.tar.xz
drakx-d7dacc1beeddce232e79f5d4a7b114f2a84816a5.zip
write /etc/mdadm.conf when creating a new md (bugzilla #15502)
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/install2.pm2
-rw-r--r--perl-install/raid.pm3
2 files changed, 3 insertions, 2 deletions
diff --git a/perl-install/install2.pm b/perl-install/install2.pm
index d31a6acae..5a96acab0 100644
--- a/perl-install/install2.pm
+++ b/perl-install/install2.pm
@@ -207,7 +207,7 @@ sub formatPartitions {
}
require raid;
- raid::prepare_prefixed($o->{all_hds}{raids});
+ raid::write_conf($o->{all_hds}{raids});
#- needed by lilo
if (-d '/dev/mapper') {
diff --git a/perl-install/raid.pm b/perl-install/raid.pm
index 68abe51fc..4c0b6ca2c 100644
--- a/perl-install/raid.pm
+++ b/perl-install/raid.pm
@@ -127,6 +127,7 @@ sub make {
if (my $raw_part = get_md_info($dev)) {
$part->{UUID} = $raw_part->{UUID};
}
+ write_conf($raids) if $::isStandalone;
}
sub format_part {
@@ -227,7 +228,7 @@ sub is_active {
member($dev, active_mds());
}
-sub prepare_prefixed {
+sub write_conf {
my ($raids) = @_;
@$raids or return;