From dd1a2cb0a93811a869dcc328cfdfd5bfa8532bcc Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 6 Jul 2017 22:01:05 +0200 Subject: archbuild: delete "root" even if it is a mountpoint --- archbuild.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/archbuild.in b/archbuild.in index defbf2b..7e1a964 100644 --- a/archbuild.in +++ b/archbuild.in @@ -75,6 +75,9 @@ if ${clean_first} || [[ ! -d "${chroots}/${repo}-${arch}" ]]; then -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 -- cgit v1.2.3-70-g09d2