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> | 2022-12-08 12:57:22 +0100 |
commit | 51a57799cd73706c8905b4736b6023954193adc0 (patch) | |
tree | 1363d2a5094abead5e44f379075deb3d62195a06 | |
parent | b56e812899e5605954bf2da236ce8db6a231aebb (diff) |
-rw-r--r-- | src/archbuild.in | 6 |
diff --git a/src/archbuild.in b/src/archbuild.in index 72d8005..a5eb9a0 100644 --- a/src/archbuild.in +++ b/src/archbuild.in @@ -77,6 +77,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 |