diff options
author | Erich Eckner <git@eckner.net> | 2019-06-16 15:04:56 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2021-02-25 12:40:07 +0100 |
commit | 8e36f037bb3058bf734dedd886a34229df0610ac (patch) | |
tree | 0d6c9c607c8780dcfb90e087bd4b0017af3908c8 | |
parent | 5073780f7d66ea29e4484b1611a474332a520600 (diff) | |
download | devtools-20210225.1.tar.xz |
archbuild.in: umount -l left-over mounts inside the to-be-deleted chrootv20210225.1
-rw-r--r-- | archbuild.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/archbuild.in b/archbuild.in index e7733c8..827ee66 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 |