diff options
Diffstat (limited to 'system/coreutils/test-df-symlink-bindmount.patch')
-rw-r--r-- | system/coreutils/test-df-symlink-bindmount.patch | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/system/coreutils/test-df-symlink-bindmount.patch b/system/coreutils/test-df-symlink-bindmount.patch index de5cdfb02..cd44c9066 100644 --- a/system/coreutils/test-df-symlink-bindmount.patch +++ b/system/coreutils/test-df-symlink-bindmount.patch @@ -6,6 +6,6 @@ # source and target. This excludes for example BTRFS sub-volumes. -if test "$(df --output=source | grep -F "$file_system" | wc -l)" = 1; then +if test "$(df --all --output=source | grep -F "$file_system" | wc -l)" = 1; then - df --out=source,target '.' > out || fail=1 - compare exp out || fail=1 - fi + # Restrict to systems with a single file system root (and have findmnt(1)) + if test "$(findmnt -nro FSROOT | uniq | wc -l)" = 1; then + df --out=source,target '.' > out || fail=1 |