diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2003-12-02 16:33:29 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2003-12-02 16:33:29 +0000 |
commit | bf5e9f4bc756d27f14e322c3dcf0782468950d65 (patch) | |
tree | 3abe3f79bbf055d89e74164198fa923049562c22 | |
parent | 06637e5665f693173f3dac588f378c041b159a8d (diff) | |
download | drakx-bf5e9f4bc756d27f14e322c3dcf0782468950d65.tar drakx-bf5e9f4bc756d27f14e322c3dcf0782468950d65.tar.gz drakx-bf5e9f4bc756d27f14e322c3dcf0782468950d65.tar.bz2 drakx-bf5e9f4bc756d27f14e322c3dcf0782468950d65.tar.xz drakx-bf5e9f4bc756d27f14e322c3dcf0782468950d65.zip |
create a valid mtab (to allow kde to see correctly mounted partitions)
-rw-r--r-- | move/move.pm | 7 |
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})) { |