linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
To: linux-hotplug@vger.kernel.org
Subject: Re: How to create /dev/pts
Date: Mon, 01 Sep 2008 10:26:46 +0000	[thread overview]
Message-ID: <g9gg17$bc7$1@ger.gmane.org> (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?

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



  reply	other threads:[~2008-09-01 10:26 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 [this message]
2008-09-01 23:28 ` Aras Vaichas

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='g9gg17$bc7$1@ger.gmane.org' \
    --to=alan-jenkins@tuffmail.co.uk \
    --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 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).