0

I'm wondering what creates /dev/stderr on FC14. rpm -qf doesn't show any package ownership. I've dug through the init scripts and can't find it anywhere.

To provide some context, I'm creating a chroot'd jail to start with lxc.

Noah Campbell
  • 599
  • 2
  • 8
  • 15

3 Answers3

3

The canonical creator of these files is "makedev". It does have a man page. Makedev, however, simply creates symlinks to /proc/self/fd/2 for /dev/stderr.

blueben
  • 3,487
  • 1
  • 15
  • 15
  • During the install process makedev is run, creating all the devices that you will (hopefully) ever need. – bahamat Jan 03 '11 at 06:55
0

The answer is: udev

It's magical!

Curtis Doty
  • 476
  • 1
  • 5
  • 6
  • Is udev the correct answer for managing /dev entries inside a chroot? – blueben Jan 02 '11 at 23:56
  • @blueben answer is "maybe" but "probably not". Usually in a chroot you only want to give access to a very limited set of devices, otherwise the chroot could just open /dev/sda1 and go to town. udev may have a limited mode, but I'm not sure. – bahamat Jan 03 '11 at 06:57
0

There are entries for stdin, stdout and stderr in /lib/udev/devices. I don't think you should have to do anything special for them in a chrooted environment.

See also here. Also interesting.

Dennis Williamson
  • 60,515
  • 14
  • 113
  • 148