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-06-07 06:38:46 +0200 |
commit | 71336814fb0a459827ce3e47fa397ea51fab0590 (patch) | |
tree | ff3f1879a616c54b0292e411286ab4261fa6160c | |
parent | 9244767af8e00205b0159da9d751b5043ae31ddd (diff) |
-rw-r--r-- | archbuild.in | 6 |
diff --git a/archbuild.in b/archbuild.in index 72d8005..a5eb9a0 100644 --- a/archbuild.in +++ b/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 |