From d7dacc1beeddce232e79f5d4a7b114f2a84816a5 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 8 Aug 2005 08:19:04 +0000 Subject: write /etc/mdadm.conf when creating a new md (bugzilla #15502) --- perl-install/raid.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'perl-install/raid.pm') 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; -- cgit v1.2.1