summaryrefslogtreecommitdiffstats
path: root/makechrootpkg.in
diff options
context:
space:
mode:
authorJan Alexander Steffens (heftig) <jan.steffens@gmail.com>2017-04-09 02:36:01 +0200
committerJan Alexander Steffens (heftig) <jan.steffens@gmail.com>2017-04-09 02:37:24 +0200
commita1f8ac9c70494009554c08c1036351cb2b374828 (patch)
tree52705d04ad9d081c0e692e4cae5ecf7eb5759790 /makechrootpkg.in
parent2243a276e4b84dedc8d362ad66716026688949c0 (diff)
downloaddevtools-a1f8ac9c70494009554c08c1036351cb2b374828.tar.gz
devtools-a1f8ac9c70494009554c08c1036351cb2b374828.tar.xz
makechrootpkg: Delete chroot subvols recursively when using -T
I overlooked this one. Fixes FS#53513.
Diffstat (limited to 'makechrootpkg.in')
-rw-r--r--makechrootpkg.in2
1 files changed, 1 insertions, 1 deletions
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