From c53a3e80170dc9d45beeeb623edfbf0bd40799a7 Mon Sep 17 00:00:00 2001 From: "Jan Alexander Steffens (heftig)" Date: Tue, 7 Mar 2017 19:55:05 +0100 Subject: lib/archroot.sh: Add is_btrfs helper --- archbuild.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'archbuild.in') diff --git a/archbuild.in b/archbuild.in index 4fb33c3..b192788 100644 --- a/archbuild.in +++ b/archbuild.in @@ -52,7 +52,7 @@ if ${clean_first} || [[ ! -d "${chroots}/${repo}-${arch}" ]]; then lock 9 "$copy.lock" "Locking chroot copy '$copy'" - if [[ "$(stat -f -c %T "${copy}")" == btrfs ]]; then + if is_btrfs "${copy}"; then { type -P btrfs && btrfs subvolume delete "${copy}"; } &>/dev/null fi rm -rf --one-file-system "${copy}" -- cgit v1.2.3-54-g00ecf