From: Aras Vaichas <arasv@magtech.com.au>
To: linux-hotplug@vger.kernel.org
Subject: Re: How to create /dev/pts
Date: Mon, 01 Sep 2008 23:28:56 +0000 [thread overview]
Message-ID: <48BC7AB8.7060604@magtech.com.au> (raw)
In-Reply-To: <f8f960770809010216j5ff27187y2b674eab63c8ae0@mail.gmail.com>
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
______________________________________________________________________
prev parent reply other threads:[~2008-09-01 23:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48BC7AB8.7060604@magtech.com.au \
--to=arasv@magtech.com.au \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.