summaryrefslogtreecommitdiffstats
path: root/move
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-06-22 05:44:35 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-06-22 05:44:35 +0000
commit26d228baa7b2ec5542ae3152ba1b58a186a84884 (patch)
tree24973d518d2b8e0841f53bab28b9560c78fb688e /move
parent28bbb49ebf24bc00c3c3c67a3ab4739e2f914518 (diff)
downloaddrakx-backup-do-not-use-26d228baa7b2ec5542ae3152ba1b58a186a84884.tar
drakx-backup-do-not-use-26d228baa7b2ec5542ae3152ba1b58a186a84884.tar.gz
drakx-backup-do-not-use-26d228baa7b2ec5542ae3152ba1b58a186a84884.tar.bz2
drakx-backup-do-not-use-26d228baa7b2ec5542ae3152ba1b58a186a84884.tar.xz
drakx-backup-do-not-use-26d228baa7b2ec5542ae3152ba1b58a186a84884.zip
- use magicdev for secondary cdrom
- have a proper mtab for magicdev+kded to work
Diffstat (limited to 'move')
-rwxr-xr-xmove/etc-monitorer.pl1
-rw-r--r--move/move.pm6
2 files changed, 4 insertions, 3 deletions
diff --git a/move/etc-monitorer.pl b/move/etc-monitorer.pl
index 2f79b7a49..231b9f772 100755
--- a/move/etc-monitorer.pl
+++ b/move/etc-monitorer.pl
@@ -10,6 +10,7 @@ foreach my $dir (@ARGV) {
my @etcfiles = glob_("$dir/*");
foreach (@etcfiles) {
if ($_ eq '/etc/sudoers' #- /etc/sudoers can't be a link
+ || $_ eq '/etc/mtab' #- same for /etc/mtab
|| !-f
|| -l && readlink =~ m|^/|) { #- we want to trap relative symlinks only
next;
diff --git a/move/move.pm b/move/move.pm
index d08b585c2..29b19a1c9 100644
--- a/move/move.pm
+++ b/move/move.pm
@@ -120,7 +120,7 @@ sub init {
mkdir "/etc/$_" foreach qw(X11);
touch '/etc/modules.conf';
touch '/etc/modprobe.conf';
- symlinkf "/proc/mounts", "/etc/mtab";
+ cp_f('/proc/mounts', '/etc/mtab');
#- these files need be writable but we need a sensible first contents
cp_f("/image/etc/$_", '/etc') foreach qw(passwd passwd- group sudoers fstab);
@@ -528,7 +528,7 @@ after_autoconf:
require timezone;
timezone::write($o->{timezone});
- $o->{useSupermount} = 1;
+ $o->{useSupermount} = 'magicdev';
fs::set_removable_mntpoints($o->{all_hds});
fs::set_all_default_options($o->{all_hds}, %$o, lang::fs_options($o->{locale}));
@@ -663,7 +663,7 @@ sub install2::startMove {
eval { swap::swapon($_->{device}) };
} elsif ($_->{mntpoint} && !$_->{isMounted} && !$::noauto) {
mkdir_p($_->{mntpoint});
- run_program::run('mount', $_->{mntpoint});
+ run_program::run('mount', $_->{mntpoint}) if $_->{options} !~ /noauto/;
}
}