summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2012-06-16 15:28:52 +0200
committerPierre Schmitz <pierre@archlinux.de>2012-06-16 15:28:52 +0200
commitb14a1b1bcc677637e135f4bfcbde65914d3e2f82 (patch)
tree8ef1a53e83ffc38bfe80d935f136da83a1cae652
parent0cd9e1ae7e9d52b0aa5896336c692fc2111554bd (diff)
downloaddevtools-b14a1b1bcc677637e135f4bfcbde65914d3e2f82.tar.gz
devtools-b14a1b1bcc677637e135f4bfcbde65914d3e2f82.tar.xz
archbuild: do not cross filesystems when removing the chroot copies
-rw-r--r--archbuild.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/archbuild.in b/archbuild.in
index 1501a9e..c39760e 100644
--- a/archbuild.in
+++ b/archbuild.in
@@ -51,11 +51,11 @@ if ${clean_first} || [[ ! -d "${chroots}/${repo}-${arch}" ]]; then
fi
{ type -P btrfs && btrfs subvolume delete "${copy}"; } &>/dev/null
- rm -rf "${copy}"
+ rm -rf --one-file-system "${copy}"
done
exec 9>&-
- rm -rf "${chroots}/${repo}-${arch}"
+ rm -rf --one-file-system "${chroots}/${repo}-${arch}"
mkdir -p "${chroots}/${repo}-${arch}"
setarch "${arch}" mkarchroot \
-C "@pkgdatadir@/pacman-${repo}.conf" \