diff options
| author | Jonathan Bauer | 2014-07-25 15:56:48 +0200 |
|---|---|---|
| committer | Jonathan Bauer | 2014-07-25 15:56:48 +0200 |
| commit | b063cb9e530760acdfc16819fd1d21ab797666bb (patch) | |
| tree | fa75dd8a01d7e8ed72e081454861d5a816d305e5 /helper | |
| parent | [rfs-s31] fix copying of the busybox (diff) | |
| parent | [pvs2 + x11vnc] Add conf files for fedora (diff) | |
| download | tm-scripts-b063cb9e530760acdfc16819fd1d21ab797666bb.tar.gz tm-scripts-b063cb9e530760acdfc16819fd1d21ab797666bb.tar.xz tm-scripts-b063cb9e530760acdfc16819fd1d21ab797666bb.zip | |
Merge branch 'master' of git.openslx.org:openslx-ng/tm-scripts
Diffstat (limited to 'helper')
| -rw-r--r-- | helper/fileutil.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/helper/fileutil.inc b/helper/fileutil.inc index 525e46a7..10b4bbc7 100644 --- a/helper/fileutil.inc +++ b/helper/fileutil.inc @@ -23,7 +23,9 @@ tarcopy () { [ -z "$TO" ] && perror "tarcopy called with empty destination." [ ! -d "$TO" ] && { mkdir -p "$TO" || perror "could not create destination "$TO" for tar-copy."; } # TODO count files copied? would remove the need to do it everywhere :) - tar $IGNORE_ERROR -cpP $FROM | tar -xp -C "$TO" 2> /dev/null + tar $IGNORE_ERROR -cpP $FROM | tar -xp -C "$TO" \ + --transform 's,^/lib/udev/rules.d,/usr/lib/udev/rules.d,' \ + 2> /dev/null local PS=(${PIPESTATUS[*]}) [ "x$IGNORE_ERROR" == "x" -a "x${PS[0]}" != "x0" ] && perror "packing-part of tar-copy from '$SHORT' to '$TO' failed. (${PS[0]})" [ "x${PS[1]}" != "x0" ] && perror "unpacking-part of tar-copy from '$SHORT' to '$TO' failed. (${PS[1]})" |
