makechrootpkg: Delete chroot subvols recursively when using -T

I overlooked this one. Fixes FS#53513.
This commit is contained in:
Jan Alexander Steffens (heftig) 2017-04-09 02:36:01 +02:00
parent 2243a276e4
commit a1f8ac9c70
No known key found for this signature in database
GPG Key ID: A5E9288C4FA415FA
1 changed files with 1 additions and 1 deletions

View File

@ -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