archbuild: do not cross filesystems when removing the chroot copies

This commit is contained in:
Pierre Schmitz 2012-06-16 15:28:52 +02:00
parent 0cd9e1ae7e
commit b14a1b1bcc
1 changed files with 2 additions and 2 deletions

View File

@ -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" \