From b14a1b1bcc677637e135f4bfcbde65914d3e2f82 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Sat, 16 Jun 2012 15:28:52 +0200 Subject: archbuild: do not cross filesystems when removing the chroot copies --- archbuild.in | 4 ++-- 1 file 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" \ -- cgit v1.2.3-70-g09d2