summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/bootloader-config
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-09-05 08:36:17 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-09-05 08:36:17 +0000
commit03f3b7743eb58b6415a6dc32ae37fe466f534216 (patch)
tree1035901093c9f889a3f27e82fcd705ad45b1269b /perl-install/standalone/bootloader-config
parentd19692fa29e24940e037cf32ad8d76741fa6d087 (diff)
downloaddrakx-backup-do-not-use-03f3b7743eb58b6415a6dc32ae37fe466f534216.tar
drakx-backup-do-not-use-03f3b7743eb58b6415a6dc32ae37fe466f534216.tar.gz
drakx-backup-do-not-use-03f3b7743eb58b6415a6dc32ae37fe466f534216.tar.bz2
drakx-backup-do-not-use-03f3b7743eb58b6415a6dc32ae37fe466f534216.tar.xz
drakx-backup-do-not-use-03f3b7743eb58b6415a6dc32ae37fe466f534216.zip
- bootloader-config:
o --action migrate-to-uuids: backup conf file prior to migration with suffix
Diffstat (limited to 'perl-install/standalone/bootloader-config')
-rwxr-xr-xperl-install/standalone/bootloader-config7
1 files changed, 5 insertions, 2 deletions
diff --git a/perl-install/standalone/bootloader-config b/perl-install/standalone/bootloader-config
index 4a4b194df..b5a8e6807 100755
--- a/perl-install/standalone/bootloader-config
+++ b/perl-install/standalone/bootloader-config
@@ -259,7 +259,7 @@ sub migrate_to_uuids() {
});
if ($bootloader_migrated) {
- bootloader::action($bootloader, 'write', $all_hds);
+ bootloader::action($bootloader, 'write', $all_hds, '.before-migrate-to-uuids');
bootloader::action($bootloader, 'when_config_changed');
}
}
@@ -272,7 +272,10 @@ sub _migrate_to_uuids__fstab() {
$fstab_migrated = 1;
}
}
- fs::write_fstab($all_hds) if $fstab_migrated;
+ if ($fstab_migrated) {
+ cp_af('/etc/fstab', '/etc/fstab.before-migrate-to-uuids');
+ fs::write_fstab($all_hds);
+ }
}
sub _migrate_dev_to_uuid {