From bad781082d633c59051ec2deacf1005661c66835 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= Date: Sat, 8 Feb 2020 12:48:52 +0200 Subject: abuild: use stat instead of df to figure filesystem type Fixes the error: df: .: can't find mount point When running abuild inside a chroot when the root file system mountpoint information is not necessarily directly available. --- abuild.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/abuild.in b/abuild.in index f04178b..008de98 100644 --- a/abuild.in +++ b/abuild.in @@ -997,7 +997,7 @@ prepare_metafiles() { local builddate="$SOURCE_DATE_EPOCH" # Fix package size on several filesystems - case "$(df -PT . | awk 'END {print $2}')" in + case "$(stat -f -c "%T" .)" in btrfs|ecryptfs|zfs) sync;; esac -- cgit v1.2.3