diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2012-06-16 15:28:52 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2012-06-16 15:28:52 +0200 |
commit | b14a1b1bcc677637e135f4bfcbde65914d3e2f82 (patch) | |
tree | 8ef1a53e83ffc38bfe80d935f136da83a1cae652 | |
parent | 0cd9e1ae7e9d52b0aa5896336c692fc2111554bd (diff) | |
download | devtools-b14a1b1bcc677637e135f4bfcbde65914d3e2f82.tar.gz devtools-b14a1b1bcc677637e135f4bfcbde65914d3e2f82.tar.xz |
archbuild: do not cross filesystems when removing the chroot copies
-rw-r--r-- | archbuild.in | 4 |
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" \ |