On 07/09/2026 03:40, Collin Funk wrote:
Hi,
[email protected] wrote:
On Windows WSL2 (1.2.5.0) running Ubuntu 22.04.3 LTS one test failed.
I downloaded a source release (coreutils-9.3) and did: ./configure,
make, make check.
============================================================================
Testsuite summary for GNU coreutils 9.3
============================================================================
# TOTAL: 643
# PASS: 526
# SKIP: 116
# XFAIL: 0
# FAIL: 1
# XPASS: 0
# ERROR: 0
============================================================================
See ./tests/test-suite.log
Please report to bug-coreutils <at> gnu.org
============================================================================
[test-result.log snipped ...]
Thanks for sharing all of that information.
The /init mount point is an implementation detail for WSL2. From
skimming Microsoft's article [1], it seems like it receives the requests
to start Linux and Windows processes, handling them accordingly.
The issue is that this file is listed as rootfs in /proc/self/mountinfo,
but statfs reports it as tmpfs:
$ grep --perl-regexp '\s+/init\s+' /proc/self/mountinfo /etc/mtab
/proc/self/mountinfo:111 82 0:2 /init /init ro - rootfs rootfs
rw,size=1982392k,nr_inodes=495598
/etc/mtab:rootfs /init rootfs ro,size=1982392k,nr_inodes=495598 0 0
$ stat --file-system --format %T /init
tmpfs
I'm inclined to leave 'df' as is, since the only way to detect whether
we are WSL is through heuristics which may change in future WSL
versions.
I've attached a patch to skip the test. Pádraig, okay to push or shall
I wait until after release?
Collin
[1]
https://learn.microsoft.com/en-us/archive/blogs/wsl/windows-and-ubuntu-interoperability#launching-processes-in-wsl
I've pushed that now.
Marking this as done.
Thank you.
Padraig