From 1de370354a1aca41293820167b82a97967d6a084 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 27 Jun 2017 08:52:16 +0200 Subject: archbuild.in: delete old chroot more forcefully --- archbuild.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/archbuild.in b/archbuild.in index e593156..88fbbde 100644 --- a/archbuild.in +++ b/archbuild.in @@ -65,6 +65,11 @@ 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 -type d -exec 'mountpoint' '{}' ';' | \ + xargs -rn1 umount -l + rm -rf --one-file-system "${copy}" + fi done lock_close 9 -- cgit v1.2.3-70-g09d2