Re: How to create /dev/pts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



jimbob palmer wrote:

> Hello,
> 
> I am running Ubuntu 8.04.1 in a container (openvz).
> 
> Ubuntu uses udev, and the /dev/pts device does not exist in the container.
> 
> I can cheat, and run
>  cd /dev && /sbin/MAKEDEV pty && /sbin/MAKEDEV tty
> manually with a chroot, but this is a hack.
> 
> RHEL has the makedev.d directory which solves my problem quite easily.
> 
> I wondered if there is a correct way of doing this with just udev?

Normally Ubuntu uses the devpts filesystem.  The ultimate solution is for
this to be container-ized as discussed recently on LKML.  (IIRC the result
was to avoid container-specific magic and just allow multiple independent
mounts of devpts).

So I think this is an OpenVZ issue and you need to find out how OpenVZ is
supposed to work here.  My guess is your "hack" is actually the correct
solution for the time being.  You just need to add the commands to an init
script somewhere.

Alan


--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux