From 530c47f27701b511bc9f6e3c2b3d4b7a40f0517c Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 2 Dec 2003 20:24:22 +0000 Subject: restore /etc/mtab linked to /proc/mounts, other things like "umount /xxx" can fail because /xxx is in /proc/mounts, but not in mtab --- move/move.pm | 7 +------ 1 file changed, 1 insertion(+), 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})) { -- cgit v1.2.1