diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-05-10 22:22:06 -0400 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2014-09-22 08:25:43 -0400 |
commit | 12a1300694272928e70408f4ce2fe85bacd19eb4 (patch) | |
tree | 0fa9b6a25307cb1e37bf618fa0d757a9143e3753 | |
parent | 625e6bd41206c5018b1a9e11c5cc2b3aef55a66e (diff) | |
download | devtools-12a1300694272928e70408f4ce2fe85bacd19eb4.tar.xz |
makechrootpkg: Use the btrfs mountpoint/subvolume check consistently.
Commit 59e348fc3c5dd086331d884a6dd76fb43a92b7eb added a btrfs subvolume
check, but only used it in create_chroot(); it missed clean_temporary().
-rw-r--r-- | makechrootpkg.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/makechrootpkg.in b/makechrootpkg.in index 5ed7390..8bc18a4 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 |