diff options
author | Olivier Blin <oblin@mandriva.com> | 2007-10-04 13:14:47 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2007-10-04 13:14:47 +0000 |
commit | e89e4242fbb9d7133c858280e4c53ecb27c1d32e (patch) | |
tree | 79eee3e42f20d53212e7189936cfdb244cb96502 | |
parent | ddffcfbc159629738babf33c1e48aa25b3888ed7 (diff) | |
download | draklive-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-x | draklive-install | 12 |
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); |