From a1f8ac9c70494009554c08c1036351cb2b374828 Mon Sep 17 00:00:00 2001
From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com>
Date: Sun, 9 Apr 2017 02:36:01 +0200
Subject: [PATCH] makechrootpkg: Delete chroot subvols recursively when using
 -T

I overlooked this one. Fixes FS#53513.
---
 makechrootpkg.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/makechrootpkg.in b/makechrootpkg.in
index f6764cb..20a1f50 100644
--- a/makechrootpkg.in
+++ b/makechrootpkg.in
@@ -143,7 +143,7 @@ delete_chroot() {
 
 	stat_busy "Removing chroot copy [%s]" "$copy"
 	if is_btrfs "$chrootdir" && ! mountpoint -q "$copydir"; then
-		btrfs subvolume delete "$copydir" >/dev/null ||
+		subvolume_delete_recursive "$copydir" ||
 			die "Unable to delete subvolume %s" "$copydir"
 	else
 		# avoid change of filesystem in case of an umount failure
-- 
GitLab