From b535fa33737dcc53b6260ca74ab95c401ad541f8 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Fri, 24 Feb 2006 12:22:02 +0000 Subject: allow to copy files in system chroot --- tools/draklive | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tools') 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) -- cgit v1.2.1