summaryrefslogtreecommitdiff
path: root/makechrootpkg.in
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-01-05 18:45:26 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-01-05 18:45:26 -0500
commit534d2015b45e013b37e1edbb997bd4df27d7b8fd (patch)
treee0496b5605062ce4c43e8ca7cb8f709aecff439e /makechrootpkg.in
parent6223f9fca6803d814ba026cb5b88c9c2ed48b540 (diff)
downloaddevtools32-534d2015b45e013b37e1edbb997bd4df27d7b8fd.tar.xz
makechrootpkg: fix the btrfs check in both placeslibretools-20140106
Upstream only fiex it in one place.
Diffstat (limited to 'makechrootpkg.in')
-rw-r--r--makechrootpkg.in2
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