diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2003-12-02 19:32:32 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2003-12-02 19:32:32 +0000 |
commit | 2a2c9ad3968483eb5166bf5c4536c5e1e8a1573d (patch) | |
tree | d16ebf3efeb2b497647e0f1843bfee29a9f272a2 /move/move.pm | |
parent | 93e0970c6d78b556b2cd248920f6903dfa0e097d (diff) | |
download | drakx-2a2c9ad3968483eb5166bf5c4536c5e1e8a1573d.tar drakx-2a2c9ad3968483eb5166bf5c4536c5e1e8a1573d.tar.gz drakx-2a2c9ad3968483eb5166bf5c4536c5e1e8a1573d.tar.bz2 drakx-2a2c9ad3968483eb5166bf5c4536c5e1e8a1573d.tar.xz drakx-2a2c9ad3968483eb5166bf5c4536c5e1e8a1573d.zip |
remove /etc/mtab link first
Diffstat (limited to 'move/move.pm')
-rw-r--r-- | move/move.pm | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/move/move.pm b/move/move.pm index 99ba0c689..08c1ac228 100644 --- a/move/move.pm +++ b/move/move.pm @@ -24,6 +24,8 @@ use common; use fs; use fsedit; use run_program; +use partition_table qw(:types); +use swap; use log; use lang; use Digest::MD5 qw(md5_hex); @@ -179,7 +181,7 @@ sub init { install2::handleI18NClp(); } - output('/etc/mtab', ''); + unlink('/etc/mtab'); output('/etc/mtab', ''); touch '/var/run/rebootctl'; drakx_stuff: @@ -578,9 +580,12 @@ sub install2::startMove { #- 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}); + if (isSwap($_)) { + eval { swap::swapon($_->{device}) }; + } elsif ($_->{mntpoint} && !$_->{isMounted} && $_->{options} !~ /\bnoauto\b/) { + mkdir_p($_->{mntpoint}); + run_program::run('mount', $_->{mntpoint}); + } } install_TrueFS_in_home($o); |