Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
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>2020-02-23 21:00:12 +0100
commitd9ff56544f585f9e19486b544fbc2900787b821e (patch)
treeba3af6d2077a124e386962e84b53ce8fbbaa0fdd /archbuild.in
parent34e40d9b794db0a330c208967f11a264906ce81f (diff)
archbuild.in: umount -l left-over mounts inside the to-be-deleted chrootv20200223
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 b7f73a3..af064d5 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