summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-05-30 14:05:43 +0000
committerOlivier Blin <oblin@mandriva.com>2008-05-30 14:05:43 +0000
commit94dce1a370c7f736f0bcab654ac22078e307ea67 (patch)
tree10dc45c6deb334c5fb8ccba65c4046c35529d3c4
parent39ceba8969796a30a3c7581515a4347a4dd9058e (diff)
downloaddraklive-install-94dce1a370c7f736f0bcab654ac22078e307ea67.tar
draklive-install-94dce1a370c7f736f0bcab654ac22078e307ea67.tar.gz
draklive-install-94dce1a370c7f736f0bcab654ac22078e307ea67.tar.bz2
draklive-install-94dce1a370c7f736f0bcab654ac22078e307ea67.tar.xz
draklive-install-94dce1a370c7f736f0bcab654ac22078e307ea67.zip
clean fstab in the live system (since partitions UUIDs of the installed system have been modified)
-rwxr-xr-xdraklive-install12
1 files changed, 12 insertions, 0 deletions
diff --git a/draklive-install b/draklive-install
index 47ac665..ce006d9 100755
--- a/draklive-install
+++ b/draklive-install
@@ -298,11 +298,23 @@ sub setup_bootloader {
sync_logs();
}
+sub clean_live_system_hds() {
+ #- clean fstab in the live system
+ #- since partitions UUIDs of the installed system have been modified
+ #- (useful for persistent live systems)
+ local $::prefix = undef;
+ my $all_hds = fs::get::empty_all_hds(); #- skip real harddisks
+ fs::get_raw_hds('', $all_hds);
+ fs::get_info_from_fstab($all_hds);
+ fs::write_fstab($all_hds, $::prefix);
+}
+
sub finish_installation {
my ($fstab) = @_;
sync_logs();
#- cleanly umount here, it will avoid fs journals to be corrupted after a hackish reboot
umount_all($fstab);
+ clean_live_system_hds();
}
sub display_end_message {