diff options
author | Timo Teräs <timo.teras@iki.fi> | 2020-02-08 12:48:52 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2020-02-08 12:51:10 +0200 |
commit | bad781082d633c59051ec2deacf1005661c66835 (patch) | |
tree | a4716646b1a9050502bc514d1739fca80700d718 | |
parent | c9d3df08b3d2824e4f2b3b1e901fee08447f5b61 (diff) | |
download | abuild-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.in | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |