* How to create /dev/pts
@ 2008-09-01 9:16 jimbob palmer
2008-09-01 10:26 ` Alan Jenkins
2008-09-01 23:28 ` Aras Vaichas
0 siblings, 2 replies; 3+ messages in thread
From: jimbob palmer @ 2008-09-01 9:16 UTC (permalink / raw)
To: linux-hotplug
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?
Thanks,
Jim
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to create /dev/pts
2008-09-01 9:16 How to create /dev/pts jimbob palmer
@ 2008-09-01 10:26 ` Alan Jenkins
2008-09-01 23:28 ` Aras Vaichas
1 sibling, 0 replies; 3+ messages in thread
From: Alan Jenkins @ 2008-09-01 10:26 UTC (permalink / raw)
To: linux-hotplug
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to create /dev/pts
2008-09-01 9:16 How to create /dev/pts jimbob palmer
2008-09-01 10:26 ` Alan Jenkins
@ 2008-09-01 23:28 ` Aras Vaichas
1 sibling, 0 replies; 3+ messages in thread
From: Aras Vaichas @ 2008-09-01 23:28 UTC (permalink / raw)
To: linux-hotplug
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?
>
If it will help, this is the top section of my init script. I create the
pts directory.
# essential system init
mount -t tmpfs mdev /dev
mkdir /dev/pts
mount -t devpts devpts /dev/pts
mount proc
mount sys
# copy over some necessary devices
cp -a /lib/udev/devices/* /dev
where:
# ll /lib/udev/devices/
drwxr-xr-x 3 root root 4096 Sep 1 2008 ./
drwxr-xr-x 4 root root 4096 Aug 29 2008 ../
lrwxrwxrwx 1 root root 11 Jul 7 2008 core -> /proc/kcore@
lrwxrwxrwx 1 root root 13 Jul 7 2008 fd -> /proc/self/fd/
crw-rw-rw- 1 root root 1, 3 Aug 12 2008 null
crw-rw-r-- 1 root root 108, 0 Sep 1 2008 ppp
drwxrwxrwt 2 root root 4096 Jan 9 2006 shm/
lrwxrwxrwx 1 root root 4 Jul 7 2008 stderr -> fd/2
lrwxrwxrwx 1 root root 4 Jul 7 2008 stdin -> fd/0
lrwxrwxrwx 1 root root 4 Jul 7 2008 stdout -> fd/1
crw-r--r-- 1 root root 4, 64 Aug 27 2008 ttyS0
Some of those might be unnecessary, I'm currently in the middle of an
overhaul and update of our whole distribution.
Aras
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-09-01 23:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-01 9:16 How to create /dev/pts jimbob palmer
2008-09-01 10:26 ` Alan Jenkins
2008-09-01 23:28 ` Aras Vaichas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).