summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/draklive6
1 files changed, 4 insertions, 2 deletions
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: