makechrootpkg: Use the btrfs mountpoint/subvolume check consistently.

Commit 59e348fc3c added a btrfs subvolume
check, but only used it in create_chroot(); it missed clean_temporary().
This commit is contained in:
Luke Shumaker 2014-05-10 22:22:06 -04:00 committed by Dave Reisner
parent 625e6bd412
commit 12a1300694
1 changed files with 1 additions and 1 deletions

View File

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