diff options
author | Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> | 2017-04-09 02:36:01 +0200 |
---|---|---|
committer | Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> | 2017-04-09 02:37:24 +0200 |
commit | a1f8ac9c70494009554c08c1036351cb2b374828 (patch) | |
tree | 52705d04ad9d081c0e692e4cae5ecf7eb5759790 /makechrootpkg.in | |
parent | 2243a276e4b84dedc8d362ad66716026688949c0 (diff) | |
download | devtools-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.in | 2 |
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 |