Repository navigation
Description
Windows Version
Microsoft Windows [Version 10.0.26200.8973]
WSL Version
2.9.4.0
Are you using WSL 1 or WSL 2?
- WSL 2
- WSL 1
Kernel Version
Linux version 6.18.35.2-microsoft-standard-WSL2
Distro Version
Ubuntu 26.04
Other Software
No response
Repro Steps
On every boot, systemd-binfmt.service and binfmt-support.service fail to write to /proc/sys/fs/binfmt_misc/status, logging repeated "Read-only file system" warnings — even though the root filesystem itself is mounted read-write.
Steps to Reproduce:
- Enable systemd in WSL ([boot] systemd=true in /etc/wsl.conf).
- Restart the distro: wsl --shutdown, then relaunch.
- Run:
journalctl -b | grep -i binfmt
Expected Behavior
systemd-binfmt.service should either succeed in registering/flushing binfmt_misc rules, or WSL's own interop layer (which appears to pre-register binfmt_misc handlers for Windows .exe interop) should mark the relevant entries in a way systemd-binfmt recognizes and skips gracefully, rather than failing with an exit code and logging repeated warnings.
Actual Behavior
Aug 01 19:44:38 Dimitris systemd[1]: Starting systemd-binfmt.service - Set Up Additional Binary Formats...
Aug 01 19:44:38 Dimitris systemd-binfmt[597]: Failed to flush binfmt_misc rules, ignoring: Read-only file system
Aug 01 19:44:38 Dimitris systemd[1]: systemd-binfmt.service: Main process exited, code=exited, status=1/FAILURE
Aug 01 19:44:38 Dimitris systemd[1]: systemd-binfmt.service: Failed with result 'exit-code'.
Aug 01 19:44:38 Dimitris systemd[1]: Failed to start systemd-binfmt.service - Set Up Additional Binary Formats.
Aug 01 19:44:38 Dimitris systemd[1]: Starting binfmt-support.service - Enable support for additional executable binary formats...
Aug 01 19:44:38 Dimitris update-binfmts[608]: update-binfmts: warning: unable to open /proc/sys/fs/binfmt_misc/status for writing: Read-only file system
Aug 01 19:44:38 Dimitris update-binfmts[608]: update-binfmts: warning: unable to open /proc/sys/fs/binfmt_misc/status for writing: Read-only file system
Aug 01 19:44:38 Dimitris update-binfmts[608]: update-binfmts: warning: unable to open /proc/sys/fs/binfmt_misc/status for writing: Read-only file system
Aug 01 19:44:38 Dimitris update-binfmts[608]: update-binfmts: warning: unable to open /proc/sys/fs/binfmt_misc/status for writing: Read-only file system
Aug 01 19:44:38 Dimitris systemd[1]: Finished binfmt-support.service - Enable support for additional executable binary formats.
Note that / itself is confirmed read-write at the time of failure:
/dev/sdd on / type ext4 (rw,relatime,discard,errors=remount-ro,data=ordered)
So the read-only condition is specific to /proc/sys/fs/binfmt_misc, not the root filesystem.
Activity
github-actions commentedon Aug 1, 2026
No logs.etl found in the archive. Make sure that you ran
collect-wsl-logs.ps1as administrator and that thelogs.etlfile is in the archive.Diagnostic information
dhtzs commentedon Aug 1, 2026
WslLogs-2026-08-01_20-32-10.tar.gz
github-actions commentedon Aug 1, 2026
Diagnostic information
github-actions commentedon Aug 1, 2026
Diagnostic information
chemwolf6922 commentedon Aug 4, 2026
Hi Dimitris Chatzis (@dhtzs) .
This was introduced by #40621 to fix the binfmt missing after distro termination issue.
The systemd error is benign and won't affect registration of user defined binfmt settings. Please ignore it if it's not affecting any functions.
fix(wsl): disable wpa_supplicant, add agenix service users, annotate …
systemd: pass binfmt.conf explicitly to systemd-binfmt on WSL