index : devtools32 | |
Archlinux32 fork of devtools | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2017-06-27 08:52:16 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-05-29 08:55:57 +0200 |
commit | c29cb80d33315fc6023f68e93239508084a9ec23 (patch) | |
tree | 468239021d352471897d9ca0c2f8b2c15bed14e0 | |
parent | 88e631c6f02aae5ab2c4fbbe1736a8a94fb0b6a5 (diff) |
-rw-r--r-- | archbuild.in | 10 |
diff --git a/archbuild.in b/archbuild.in index 4194b68..73ae65d 100644 --- a/archbuild.in +++ b/archbuild.in @@ -69,6 +69,16 @@ if ${clean_first} || [[ ! -d "${chroots}/${repo}-${arch}" ]]; then subvolume_delete_recursive "${copy}" rm -rf --one-file-system "${copy}" + if [ -d "${copy}" ]; then + find "${copy}" \ + -xdev -mindepth 1 -type d \ + -exec 'mountpoint' '-q' '{}' ';' \ + -exec 'umount' '-l' '{}' ';' + rm -rf --one-file-system "${copy}" + mountpoint -q "${copy}" && \ + umount -l "${copy}" && \ + rmdir "${copy}" + fi done lock_close 9 |