diff options
-rwxr-xr-x | draklive-install | 12 |
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 { |