summaryrefslogtreecommitdiffstats
path: root/move/move.pm
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-11-17 15:04:53 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-11-17 15:04:53 +0000
commit0cb672d9407acce8773c9beae02bf97323179bd3 (patch)
tree679b6105ff8ab1af8d50b711a459c4bea1d76e79 /move/move.pm
parent873df3610648871bf70db972448e7025d725f2da (diff)
downloaddrakx-0cb672d9407acce8773c9beae02bf97323179bd3.tar
drakx-0cb672d9407acce8773c9beae02bf97323179bd3.tar.gz
drakx-0cb672d9407acce8773c9beae02bf97323179bd3.tar.bz2
drakx-0cb672d9407acce8773c9beae02bf97323179bd3.tar.xz
drakx-0cb672d9407acce8773c9beae02bf97323179bd3.zip
prevent from linking /etc/sudoers to the key since sudo will refuse to work afterwards
Diffstat (limited to 'move/move.pm')
-rw-r--r--move/move.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/move/move.pm b/move/move.pm
index 09b3e21de..7654d11f3 100644
--- a/move/move.pm
+++ b/move/move.pm
@@ -254,6 +254,7 @@ unplug it, remove write protection, and then plug it again.")),
unlink '/home/.touched';
my $wait = $o->wait_message(N("Setting up USB key"), N("Please wait, setting up system configuration files on USB key..."));
+
mkdir '/home/.sysconf';
my $sysconf = '/home/.sysconf/' . machine_ident();
if (!-d $sysconf) {
@@ -271,7 +272,11 @@ unplug it, remove write protection, and then plug it again.")),
symlinkf($_, $path);
}
}
+ #- /etc/sudoers can't be a link
+ unlink($_), system("cp /image/$_ $_") foreach qw(/etc/sudoers);
+
$wait = undef;
+
}
sub install2::startMove {