summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-12-19 16:34:37 +0000
committerOlivier Blin <oblin@mandriva.org>2005-12-19 16:34:37 +0000
commit02b8c08fd0e19f8da20f0db436102501c9f90110 (patch)
tree1e5be5117cfb052b2e68e9b944d9a51865b8c522
parent85dd63c7c70e7fde793474ef239f16d748c1f073 (diff)
downloaddrakx-02b8c08fd0e19f8da20f0db436102501c9f90110.tar
drakx-02b8c08fd0e19f8da20f0db436102501c9f90110.tar.gz
drakx-02b8c08fd0e19f8da20f0db436102501c9f90110.tar.bz2
drakx-02b8c08fd0e19f8da20f0db436102501c9f90110.tar.xz
drakx-02b8c08fd0e19f8da20f0db436102501c9f90110.zip
use rsync to copy files on usb media
-rwxr-xr-xtools/draklive2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/draklive b/tools/draklive
index 3ace38cd9..a3ee59488 100755
--- a/tools/draklive
+++ b/tools/draklive
@@ -555,7 +555,7 @@ sub record_usb_master {
unless ($opts->{refresh_boot_only}) {
foreach (grep { $_->{build_from} || $_->{pre_allocate} } @{$live->{mount}{dirs} || []}) {
print "copying $_->{source}\n";
- cp_f($live->{images_dir} . '/' . $_->{source}, $live->{mnt});
+ run_('rsync', '-vP', $live->{workdir} . $live->{prefix}{images} . '/' . $_->{source}, $live->{mnt});
}
}
run_('umount', $live->{mnt});