summaryrefslogtreecommitdiff
path: root/archbuild.in
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-06-16 15:04:56 +0200
committerErich Eckner <git@eckner.net>2019-08-20 11:17:32 +0200
commit2bb21003e64c80f370286c56953a18e3ab9ce139 (patch)
tree9f0c553ece1542261aaf5a8471efde6dcad0ad80 /archbuild.in
parent0d4552bfd3b20f1b484b2e87e60ed78be5cd9815 (diff)
downloaddevtools32-2bb21003e64c80f370286c56953a18e3ab9ce139.tar.xz
archbuild.in: umount -l left-over mounts inside the to-be-deleted chrootv20190820.1
Diffstat (limited to 'archbuild.in')
-rw-r--r--archbuild.in6
1 files changed, 6 insertions, 0 deletions
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