diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2003-11-17 15:04:53 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2003-11-17 15:04:53 +0000 |
commit | 0cb672d9407acce8773c9beae02bf97323179bd3 (patch) | |
tree | 679b6105ff8ab1af8d50b711a459c4bea1d76e79 | |
parent | 873df3610648871bf70db972448e7025d725f2da (diff) | |
download | drakx-backup-do-not-use-0cb672d9407acce8773c9beae02bf97323179bd3.tar drakx-backup-do-not-use-0cb672d9407acce8773c9beae02bf97323179bd3.tar.gz drakx-backup-do-not-use-0cb672d9407acce8773c9beae02bf97323179bd3.tar.bz2 drakx-backup-do-not-use-0cb672d9407acce8773c9beae02bf97323179bd3.tar.xz drakx-backup-do-not-use-0cb672d9407acce8773c9beae02bf97323179bd3.zip |
prevent from linking /etc/sudoers to the key since sudo will refuse to work afterwards
-rw-r--r-- | move/move.pm | 5 |
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 { |