summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-12-02 20:24:22 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-12-02 20:24:22 +0000
commit530c47f27701b511bc9f6e3c2b3d4b7a40f0517c (patch)
tree29b1b641a0af252c960e6c4ad23f49aa10d258ea
parent5e697c577f01c0a1d0fe9157acde04946d8ce419 (diff)
downloaddrakx-530c47f27701b511bc9f6e3c2b3d4b7a40f0517c.tar
drakx-530c47f27701b511bc9f6e3c2b3d4b7a40f0517c.tar.gz
drakx-530c47f27701b511bc9f6e3c2b3d4b7a40f0517c.tar.bz2
drakx-530c47f27701b511bc9f6e3c2b3d4b7a40f0517c.tar.xz
drakx-530c47f27701b511bc9f6e3c2b3d4b7a40f0517c.zip
restore /etc/mtab linked to /proc/mounts, other things like "umount /xxx" can
fail because /xxx is in /proc/mounts, but not in mtab
-rw-r--r--move/move.pm7
1 files changed, 1 insertions, 6 deletions
diff --git a/move/move.pm b/move/move.pm
index fb1d1fc4f..647d2a74e 100644
--- a/move/move.pm
+++ b/move/move.pm
@@ -105,8 +105,7 @@ sub init {
mkdir "/etc/$_" foreach qw(X11);
touch '/etc/modules.conf';
-
- touch '/etc/mtab'; #- prevents from creating a link to the RO volume thus failing substInFile from fs::umount
+ symlinkf "/proc/mounts", "/etc/mtab";
#- these files need be writable but we need a sensible first contents
system("cp /image/etc/$_ /etc") foreach qw(passwd passwd- group sudoers fstab);
@@ -184,7 +183,6 @@ sub init {
install2::handleI18NClp();
}
- unlink('/etc/mtab'); output('/etc/mtab', '');
touch '/var/run/rebootctl';
drakx_stuff:
@@ -577,9 +575,6 @@ sub install2::startMove {
require ugtk2;
ugtk2::flush();
- #- have a nice mtab (esp. for /cdrom)
- system('mount', '-a', '-f');
-
#- 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})) {