summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2006-02-24 12:22:02 +0000
committerOlivier Blin <oblin@mandriva.org>2006-02-24 12:22:02 +0000
commitb535fa33737dcc53b6260ca74ab95c401ad541f8 (patch)
tree915c4c0233205dc75b0538683f296814624cc2cf /tools
parent66ee5276d58d0e7ba43da127734ab8cf328e67f6 (diff)
downloaddrakx-backup-do-not-use-b535fa33737dcc53b6260ca74ab95c401ad541f8.tar
drakx-backup-do-not-use-b535fa33737dcc53b6260ca74ab95c401ad541f8.tar.gz
drakx-backup-do-not-use-b535fa33737dcc53b6260ca74ab95c401ad541f8.tar.bz2
drakx-backup-do-not-use-b535fa33737dcc53b6260ca74ab95c401ad541f8.tar.xz
drakx-backup-do-not-use-b535fa33737dcc53b6260ca74ab95c401ad541f8.zip
allow to copy files in system chroot
Diffstat (limited to 'tools')
-rwxr-xr-xtools/draklive5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/draklive b/tools/draklive
index 3be9bfe8f..e54facbe6 100755
--- a/tools/draklive
+++ b/tools/draklive
@@ -469,6 +469,11 @@ sub post_install_system {
each_index { !defined $_ and die "unable to find file " . $live->{system}{patches}[$::i] } @patches;
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_f(@$_, get_system_root($live) . $dest);
+ }
+
#- make sure harddrake is run:
#- if previous HW config file is empty, we assumes DrakX has just completed the installation
#- (do it in chroot, or else Storable from the build box may write an incompatible config file)