summaryrefslogtreecommitdiffstats
path: root/move/move.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-12-02 16:33:29 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-12-02 16:33:29 +0000
commitbf5e9f4bc756d27f14e322c3dcf0782468950d65 (patch)
tree3abe3f79bbf055d89e74164198fa923049562c22 /move/move.pm
parent06637e5665f693173f3dac588f378c041b159a8d (diff)
downloaddrakx-backup-do-not-use-bf5e9f4bc756d27f14e322c3dcf0782468950d65.tar
drakx-backup-do-not-use-bf5e9f4bc756d27f14e322c3dcf0782468950d65.tar.gz
drakx-backup-do-not-use-bf5e9f4bc756d27f14e322c3dcf0782468950d65.tar.bz2
drakx-backup-do-not-use-bf5e9f4bc756d27f14e322c3dcf0782468950d65.tar.xz
drakx-backup-do-not-use-bf5e9f4bc756d27f14e322c3dcf0782468950d65.zip
create a valid mtab (to allow kde to see correctly mounted partitions)
Diffstat (limited to 'move/move.pm')
-rw-r--r--move/move.pm7
1 files changed, 5 insertions, 2 deletions
diff --git a/move/move.pm b/move/move.pm
index 153014bd4..a1c8da65f 100644
--- a/move/move.pm
+++ b/move/move.pm
@@ -103,7 +103,7 @@ sub init {
mkdir "/etc/$_" foreach qw(X11);
touch '/etc/modules.conf';
- symlinkf "/proc/mounts", "/etc/mtab";
+ touch '/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);
@@ -129,7 +129,7 @@ sub init {
foreach qw(encodings.dir app-defaults applnk fs lbxproxy proxymngr rstart wmsession.d xinit.d xinit xkb xserver xsm);
symlinkf_short("/image/root/$_", "/root/$_") foreach qw(.bashrc);
- mkdir_p(dirname("/var/$_")), symlinkf_short("/image/var/$_", "/var/$_") foreach qw(lib/samba);
+ mkdir_p(dirname("/var/$_")), symlinkf_short("/image/var/$_", "/var/$_") foreach qw(lib/samba cache/gstreamer-0.6);
#- non-trivial files/directories that need be readable, files that will be overwritten
handle_etcfiles('READ', 'OVERWRITE');
@@ -572,6 +572,9 @@ 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})) {