logo       

Re: Screen in a chroot: msg#00076

gnu.screen.user

Subject: Re: Screen in a chroot

On Tue, 2005-04-26 at 14:25 +0100, Recoil wrote:
> Hi again
>
> Thanks for the replies guys.
>
> I have created the /dev/null and /dev/ptmx nodes, but /dev/pts are created
> when needed by the system.
>
> I know this is going a bit off track, as far as its a screen-users mailing
> list, but anyway.
>
> Anyone got any idea how I can accomplish this in a chroot?

Indeed, that's certainly possible, although how depends on the operating
system you're using. Judging from your original message, with the "mount
-o bind", I'm assuming it would be GNU/Linux.

The Linux kernel uses a pseudo-filesystem called "devpts" for
the /dev/pts directory. There is absolutely nothing that prevents you
from mounting this filesystem on more than one directory. In other
words:
mount -t devpts none /chroot/dev/pts
That should do the trick.

HTH,
Fredrik Tolf


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise