diff --git a/archbuild.in b/archbuild.in index 1501a9e38d2599ddb95a26d973c039d1a1a23226..c39760e4decd5bbd57dda0943fdc65cc97862d78 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" \