diff options
author | WorMzy Tykashi <wormzy.tykashi@gmail.com> | 2013-09-16 00:35:37 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2013-11-01 20:28:17 +0100 |
commit | 59e348fc3c5dd086331d884a6dd76fb43a92b7eb (patch) | |
tree | d9e3ee230af151880df7eef6e4f5618fbf0f3b19 /makechrootpkg.in | |
parent | 27441f201c2394a991427f6a47199dd40024497b (diff) | |
download | devtools-59e348fc3c5dd086331d884a6dd76fb43a92b7eb.tar.xz |
Add mountpoint check to btrfs subvol logic
Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
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 00e538a..2309be2 100644 --- a/makechrootpkg.in +++ b/makechrootpkg.in @@ -142,7 +142,7 @@ create_chroot() { slock 8 "$chrootdir/root.lock" "Locking clean chroot" stat_busy "Creating clean working copy [$copy]" - if [[ "$chroottype" == btrfs ]]; then + if [[ "$chroottype" == btrfs ]] && ! mountpoint -q "$copydir"; then if [[ -d $copydir ]]; then btrfs subvolume delete "$copydir" >/dev/null || die "Unable to delete subvolume %s" "$copydir" |