From 94dce1a370c7f736f0bcab654ac22078e307ea67 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Fri, 30 May 2008 14:05:43 +0000 Subject: clean fstab in the live system (since partitions UUIDs of the installed system have been modified) --- draklive-install | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 { -- cgit v1.2.1