summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-10-04 13:14:47 +0000
committerOlivier Blin <oblin@mandriva.com>2007-10-04 13:14:47 +0000
commite89e4242fbb9d7133c858280e4c53ecb27c1d32e (patch)
tree79eee3e42f20d53212e7189936cfdb244cb96502
parentddffcfbc159629738babf33c1e48aa25b3888ed7 (diff)
downloaddraklive-install-e89e4242fbb9d7133c858280e4c53ecb27c1d32e.tar
draklive-install-e89e4242fbb9d7133c858280e4c53ecb27c1d32e.tar.gz
draklive-install-e89e4242fbb9d7133c858280e4c53ecb27c1d32e.tar.bz2
draklive-install-e89e4242fbb9d7133c858280e4c53ecb27c1d32e.tar.xz
draklive-install-e89e4242fbb9d7133c858280e4c53ecb27c1d32e.zip
umount all partitions before starting install
-rwxr-xr-xdraklive-install12
1 files changed, 10 insertions, 2 deletions
diff --git a/draklive-install b/draklive-install
index 191c61c..371eb44 100755
--- a/draklive-install
+++ b/draklive-install
@@ -53,9 +53,17 @@ sub on_reboot_needed {
my $in = 'interactive'->vnew('su');
$in->{pop_wait_messages} = 0;
+
+my $all_hds = fsedit::get_hds();
+fs::get_raw_hds('', $all_hds);
+fs::get_info_from_fstab($all_hds);
+my $fstab = [ fs::get::fstab($all_hds) ];
+fs::merge_info_from_mtab($fstab);
+fs::mount::umount_all($fstab);
+
$::prefix = '/mnt/install';
-my $all_hds = {};
-my $fstab = [];
+$all_hds = {};
+$fstab = [];
fs::any::get_hds($all_hds, $fstab, [], {}, 'skip_mtab', $in);
umount_all($fstab);