Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 812932 - sys-fs/udev-249-r3 does not provide /dev/std{in,out,err} symlinks
Summary: sys-fs/udev-249-r3 does not provide /dev/std{in,out,err} symlinks
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo systemd Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-13 08:22 UTC by Alex Efros
Modified: 2021-09-13 20:48 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Efros 2021-09-13 08:22:47 UTC
After switching from sys-fs/eudev to sys-fs/udev I noticed /dev/std{in,out,err} symlinks are missing and some apps creates /dev/stdout and a plain text file.

What is the right way to fix this?
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-09-13 19:16:02 UTC Comment hidden (obsolete)
Comment 2 Mike Gilbert gentoo-dev 2021-09-13 19:34:35 UTC
The /dev/{stdin,stdout,stderr} symlinks should be created by the "devfs" init script. This should be present in the "sysinit" runlevel.
Comment 3 Alex Efros 2021-09-13 19:46:44 UTC
(In reply to Mike Gilbert from comment #2)
> The /dev/{stdin,stdout,stderr} symlinks should be created by the "devfs"
> init script. This should be present in the "sysinit" runlevel.

Thanks!

I didn't have sys-apps/openrc installed, so I didn't noticed that script.
Comment 4 Mike Gilbert gentoo-dev 2021-09-13 19:55:11 UTC
(In reply to Alex Efros from comment #3)
> I didn't have sys-apps/openrc installed, so I didn't noticed that script.

Out of curiosity, what service manager are you using if not OpenRC?
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-09-13 20:02:29 UTC
(In reply to Mike Gilbert from comment #2)
> The /dev/{stdin,stdout,stderr} symlinks should be created by the "devfs"
> init script. This should be present in the "sysinit" runlevel.

And I was a vicitm of PEBKAC - it's indeed there!
Comment 6 Alex Efros 2021-09-13 20:33:18 UTC
(In reply to Mike Gilbert from comment #4)
> (In reply to Alex Efros from comment #3)
> > I didn't have sys-apps/openrc installed, so I didn't noticed that script.
> 
> Out of curiosity, what service manager are you using if not OpenRC?

I use runit. Works just fine with my Gentoo since 2004, you can find ebuild and init scripts in my overlay "powerman". :) Single script with 320 lines of code is enough to boot all my systems… and it needs to be updated about once per several years (like now, to restore these symlinks in /dev).
Comment 7 Mike Gilbert gentoo-dev 2021-09-13 20:44:33 UTC
Here's the relevant systemd code for reference.

https://github.com/systemd/systemd/blob/v249/src/shared/dev-setup.c
Comment 8 Mike Gilbert gentoo-dev 2021-09-13 20:48:15 UTC
And here's the commit that removes the dev_setup call from udevd. It gets called from systemd instead.

https://github.com/systemd/systemd/commit/6b2229c6c60d0486f5eb9ed3088f9c780d7c0233