summaryrefslogtreecommitdiffstats
path: root/perl-install/raid.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-09-24 17:05:17 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-09-24 17:05:17 +0000
commitb1675dff9e409b53d0275fed6afe3a761867a57c (patch)
tree666c86d0e3ece51f4941a22cf2f32968eae2892c /perl-install/raid.pm
parent65c486b54f4a5fb47a60ada466da46c3b44e91eb (diff)
downloaddrakx-backup-do-not-use-b1675dff9e409b53d0275fed6afe3a761867a57c.tar
drakx-backup-do-not-use-b1675dff9e409b53d0275fed6afe3a761867a57c.tar.gz
drakx-backup-do-not-use-b1675dff9e409b53d0275fed6afe3a761867a57c.tar.bz2
drakx-backup-do-not-use-b1675dff9e409b53d0275fed6afe3a761867a57c.tar.xz
drakx-backup-do-not-use-b1675dff9e409b53d0275fed6afe3a761867a57c.zip
also create a raidtab if it doesn't exist (occurs when / has been formatted)
Diffstat (limited to 'perl-install/raid.pm')
-rw-r--r--perl-install/raid.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/perl-install/raid.pm b/perl-install/raid.pm
index 492225ceb..048de72f1 100644
--- a/perl-install/raid.pm
+++ b/perl-install/raid.pm
@@ -158,6 +158,8 @@ sub prepare_prefixed {
my ($raids, $prefix) = @_;
$raids or return;
+ &write($raids, "/etc/raidtab") if ! -e "/etc/raidtab";
+
eval { cp_af("/etc/raidtab", "$prefix/etc/raidtab") };
foreach (grep { $_ } @$raids) {
devices::make("$prefix/dev/$_->{device}") foreach @{$_->{disks}};