diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2008-09-05 08:36:17 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2008-09-05 08:36:17 +0000 |
commit | 03f3b7743eb58b6415a6dc32ae37fe466f534216 (patch) | |
tree | 1035901093c9f889a3f27e82fcd705ad45b1269b /perl-install/standalone/bootloader-config | |
parent | d19692fa29e24940e037cf32ad8d76741fa6d087 (diff) | |
download | drakx-03f3b7743eb58b6415a6dc32ae37fe466f534216.tar drakx-03f3b7743eb58b6415a6dc32ae37fe466f534216.tar.gz drakx-03f3b7743eb58b6415a6dc32ae37fe466f534216.tar.bz2 drakx-03f3b7743eb58b6415a6dc32ae37fe466f534216.tar.xz drakx-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-x | perl-install/standalone/bootloader-config | 7 |
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 { |