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:
parent
625e6bd412
commit
12a1300694
|
@ -164,7 +164,7 @@ create_chroot() {
|
||||||
|
|
||||||
clean_temporary() {
|
clean_temporary() {
|
||||||
stat_busy "Removing temporary copy [$copy]"
|
stat_busy "Removing temporary copy [$copy]"
|
||||||
if [[ "$chroottype" == btrfs ]]; then
|
if [[ "$chroottype" == btrfs ]] && ! mountpoint -q "$copydir"; then
|
||||||
btrfs subvolume delete "$copydir" >/dev/null ||
|
btrfs subvolume delete "$copydir" >/dev/null ||
|
||||||
die "Unable to delete subvolume %s" "$copydir"
|
die "Unable to delete subvolume %s" "$copydir"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue