diff options
author | Jan Steffens <jan.steffens@gmail.com> | 2011-03-13 15:19:20 +0100 |
---|---|---|
committer | Jan Steffens <jan.steffens@gmail.com> | 2011-03-22 19:47:48 +0100 |
commit | 0af05a48abb1d35380f4f4259deb163eb3b7b174 (patch) | |
tree | 6ded82b231c23421b76147e870f96d07b1385568 /archbuild | |
parent | 174ff59dba8c24f544e354cd43f3b68aea91d265 (diff) | |
download | devtools32-0af05a48abb1d35380f4f4259deb163eb3b7b174.tar.xz |
Use Btrfs snapshots for chroot copies, when available
This is much faster than using Rsync to clone.
Rsync stays available when the chroots are not on a Btrfs.
Diffstat (limited to 'archbuild')
-rwxr-xr-x | archbuild | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -45,6 +45,7 @@ if ${clean_first} || [ ! -d "${chroots}/${repo}-${arch}" ]; then exec 9>${copy}.lock flock 9 + { type -P btrfs && btrfs subvolume delete ${copy}; } &>/dev/null rm -rf ${copy} done exec 9>&- |