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> | 2019-08-18 20:19:42 +0200 |
commit | e1922138b67f34326b0a04e445859e9c9c2b265d (patch) | |
tree | 32809a0822c0afc24150c506dcb54f9b8ae687bc | |
parent | 7613f310b1539bcfe9628e02b49844bac94f23c2 (diff) |
-rw-r--r-- | archbuild.in | 6 |
diff --git a/archbuild.in b/archbuild.in index aed79f3..a6884a6 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 |