/init does not create /var/run/utmp
Open
Nobody has claimed this yet.
feature
needs-investigation
wsl2
- Dominant language
- C++
- Stars
- 33.7k
- Forks
- 1.8k
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 116
Description
An empty (0 bytes) /var/run/utmp file should be created by /init
This would help with certain failures and/or warning messages of various programs (not only /bin/who).
My current workaround: Use 'touch /var/run/utmp' in some "system startup script".
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the /init startup path and how /var/run is prepared. Reproduce the current behavior by checking whether /var/run/utmp exists after startup, then verify that it is a 0-byte file and that the reported program warnings or failures no longer occur.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100