summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-09-26 15:35:36 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-09-26 15:35:36 +0000
commit5a2debcd2089d88fe19a2e88d1a4ce42f8c8c5b9 (patch)
tree65148dc5838880a1245c9e44b8570efa8a656de9 /perl-install
parent632c6f894a6f7b46c9515323d0caf9fa4f4d764f (diff)
downloaddrakx-5a2debcd2089d88fe19a2e88d1a4ce42f8c8c5b9.tar
drakx-5a2debcd2089d88fe19a2e88d1a4ce42f8c8c5b9.tar.gz
drakx-5a2debcd2089d88fe19a2e88d1a4ce42f8c8c5b9.tar.bz2
drakx-5a2debcd2089d88fe19a2e88d1a4ce42f8c8c5b9.tar.xz
drakx-5a2debcd2089d88fe19a2e88d1a4ce42f8c8c5b9.zip
create fstab.old when writing fstab
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/fs.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/fs.pm b/perl-install/fs.pm
index 0025583c9..1969d8f05 100644
--- a/perl-install/fs.pm
+++ b/perl-install/fs.pm
@@ -291,6 +291,7 @@ sub write_fstab {
log::l("writing $o_prefix/etc/fstab");
my $fstab = [ fs::get::really_all_fstab($all_hds), @{$all_hds->{special}} ];
my ($s, $smb_credentials) = prepare_write_fstab($fstab, $o_prefix, '');
+ renamef("$o_prefix/etc/fstab", "$o_prefix/etc/fstab.old");
output("$o_prefix/etc/fstab", $s);
fs::remote::smb::save_credentials($_) foreach @$smb_credentials;
fs::dmcrypt::save_crypttab($all_hds) if @{$all_hds->{dmcrypts}};