summaryrefslogtreecommitdiffstats
path: root/move/move.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-11-20 18:08:15 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-11-20 18:08:15 +0000
commite802ef13dec3e2e6707c7e8feadb72c7e8ffbcd4 (patch)
tree07a21a95c2023dbf5c762b6cd76a491b6b722c80 /move/move.pm
parent23bcd8dfe9972e7bc65781c50a021ab84a3b2d25 (diff)
downloaddrakx-e802ef13dec3e2e6707c7e8feadb72c7e8ffbcd4.tar
drakx-e802ef13dec3e2e6707c7e8feadb72c7e8ffbcd4.tar.gz
drakx-e802ef13dec3e2e6707c7e8feadb72c7e8ffbcd4.tar.bz2
drakx-e802ef13dec3e2e6707c7e8feadb72c7e8ffbcd4.tar.xz
drakx-e802ef13dec3e2e6707c7e8feadb72c7e8ffbcd4.zip
fix mounting things when using existing config
Diffstat (limited to 'move/move.pm')
-rw-r--r--move/move.pm9
1 files changed, 8 insertions, 1 deletions
diff --git a/move/move.pm b/move/move.pm
index a126a4b4a..a0f9ac5f6 100644
--- a/move/move.pm
+++ b/move/move.pm
@@ -362,7 +362,6 @@ sub install2::configMove {
require install_any;
install_any::write_fstab($o);
- $_->{mntpoint} && !$_->{isMounted} and run_program::run('mount', $_->{mntpoint}) foreach fsedit::get_really_all_fstab($o->{all_hds});
modules::write_conf('');
require mouse;
@@ -437,6 +436,14 @@ sub install2::startMove {
my ($w, $h) = ($pixbuf->get_width, $pixbuf->get_height);
$root->draw_pixbuf(Gtk2::Gdk::GC->new($root), $pixbuf, 0, 0, ($::rootwidth - $w) / 2, ($::rootheight - $h)/2, $w, $h, 'none', 0, 0);
ugtk2::gtkflush();
+
+ #- get info from existing fstab. This won't do anything if we already wrote fstab in configMove
+ fs::get_info_from_fstab($o->{all_hds}, '');
+ foreach (fsedit::get_really_all_fstab($o->{all_hds})) {
+ $_->{mntpoint} && !$_->{isMounted} && $_->{options} !~ /\bnoauto\b/ or next;
+ mkdir_p($_->{mntpoint});
+ run_program::run('mount', $_->{mntpoint});
+ }
install_TrueFS_in_home($o);