index : devtools32 | |
Archlinux32 fork of devtools | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2019-06-16 15:04:56 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-02-13 08:19:43 +0100 |
commit | cbadcd8236e9a4e386196fb9d9fd11e641ac92f8 (patch) | |
tree | 78e086ea593b7dda08875fa272257c26505eb662 | |
parent | ad8f590c9f4f3444ad9dc74b6cd1c1503a7869f0 (diff) |
-rw-r--r-- | archbuild.in | 6 |
diff --git a/archbuild.in b/archbuild.in index 409bf97..971b3c3 100644 --- a/archbuild.in +++ b/archbuild.in @@ -76,6 +76,12 @@ if ${clean_first} || [[ ! -d "${chroots}/${repo}-${arch}" ]]; then lock 9 "$copy.lock" "Locking chroot copy '%s'" "$copy" subvolume_delete_recursive "${copy}" + find "${copy}" \ + -mindepth 1 \ + -type d \ + -exec mountpoint -q {} \; \ + -prune \ + -exec umount -l {} \; rm -rf --one-file-system "${copy}" done lock_close 9 |