I've created a Debian-based chroot environment using debootstrap
under Arch Linux, and fill it with life like this:
#!/bin/sh
mount -t proc proc $CHROOT/proc
mount -t devpts devpts $CHROOT/dev/pts
chroot $CHROOT /bin/bash --login -c "/etc/init.d/ssh start"
The problem is that after executing the script above, I'm not able to open new terminals on the host system anymore:
urxvt: can't initialize pseudo-tty, aborting.
Shutting down the chroot
(stopping sshd
, unmounting proc and dev/pts) does not bring back new terminals on the host.
What am I missing here?
ls -l /dev/pts
before and after. Stab in the dark: ismount --bind /dev/pts $CHROOT/dev/pts
any better? You'll probably save a lot of effort by using schroot instead of building your own. – Gilles 'SO- stop being evil' Sep 11 '13 at 23:33mount --bind
did the trick, thanks! ;) Outputs ofls -l /dev/pts
did not differ. – lynix Sep 13 '13 at 12:48