From 23642ac95f7674c22031cad550f1982ab0a1d189 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Mon, 13 Mar 2006 14:16:26 +0000 Subject: change system files option semantics (copy one file only, but allow to set its permissions) --- tools/draklive | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/draklive b/tools/draklive index 1c7eaf944..4d8e304b3 100755 --- a/tools/draklive +++ b/tools/draklive @@ -496,8 +496,10 @@ sub post_install_system { run_('patch', '-p0', '-s', '-N', '-F', 0, '-d', get_system_root($live), '-r', '/tmp', '-i', $_) foreach @patches; foreach (@{$live->{system}{files}}) { - my $dest = pop @$_; - cp_af(@$_, get_system_root($live) . $dest); + my ($source, $dest, $o_perm) = @$_; + $dest = get_system_root($live) . $dest; + cp_f($source, $dest); + chmod $o_perm, $dest if $o_perm; } #- make sure harddrake is run: -- cgit v1.2.1