summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2020-02-08 12:48:52 +0200
committerTimo Teräs <timo.teras@iki.fi>2020-02-08 12:51:10 +0200
commitbad781082d633c59051ec2deacf1005661c66835 (patch)
treea4716646b1a9050502bc514d1739fca80700d718
parentc9d3df08b3d2824e4f2b3b1e901fee08447f5b61 (diff)
downloadabuild-bad781082d633c59051ec2deacf1005661c66835.tar.bz2
abuild-bad781082d633c59051ec2deacf1005661c66835.tar.xz
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.
-rw-r--r--abuild.in2
1 files changed, 1 insertions, 1 deletions
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