From 0cb672d9407acce8773c9beae02bf97323179bd3 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Mon, 17 Nov 2003 15:04:53 +0000 Subject: prevent from linking /etc/sudoers to the key since sudo will refuse to work afterwards --- move/move.pm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'move') 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 { -- cgit v1.2.1