Bug#841935: pbuilder: incorrect permissions on /dev/ptmx breaks openpty()

Simon McVittie smcv at debian.org
Mon Mar 6 09:32:22 UTC 2017


On Sun, 05 Mar 2017 at 22:16:29 +0000, James Clarke wrote:
> if you want to have use newinstance instead to separate the two, the
> problem is that the chroot can't access the controlling TTY any more, since
> it's only in the host's /dev/pts

systemd-nspawn creates a pty outside the container, but then bind-mounts
it onto /dev/console inside the container. Maybe that would be another
possibility? However, that only works if /dev/console already exists in
the chroot (it doesn't have to be a device node, it can just be an empty
file), and in a debootstrap-created minimal chroot, it doesn't.

    S



More information about the Pbuilder-maint mailing list