diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-01-05 18:45:26 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-01-05 18:45:26 -0500 |
commit | 534d2015b45e013b37e1edbb997bd4df27d7b8fd (patch) | |
tree | e0496b5605062ce4c43e8ca7cb8f709aecff439e | |
parent | 6223f9fca6803d814ba026cb5b88c9c2ed48b540 (diff) |
makechrootpkg: fix the btrfs check in both placeslibretools-20140106
Upstream only fiex it in one place.
-rw-r--r-- | makechrootpkg.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/makechrootpkg.in b/makechrootpkg.in index 052ab71..71fd5d9 100644 --- a/makechrootpkg.in +++ b/makechrootpkg.in @@ -164,7 +164,7 @@ create_chroot() { clean_temporary() { stat_busy "Removing temporary copy [%s]" "$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 |