diff --git a/makechrootpkg.in b/makechrootpkg.in index 5ed7390ecc7d21d09b9a29e9657b4984bacb5dd1..8bc18a41d3039ac85bd73bc784c778d4cc0b127b 100644 --- a/makechrootpkg.in +++ b/makechrootpkg.in @@ -164,7 +164,7 @@ create_chroot() { clean_temporary() { stat_busy "Removing temporary copy [$copy]" - if [[ "$chroottype" == btrfs ]]; then + if [[ "$chroottype" == btrfs ]] && ! mountpoint -q "$copydir"; then btrfs subvolume delete "$copydir" >/dev/null || die "Unable to delete subvolume %s" "$copydir" else