Comment 11 for bug 1263738

Revision history for this message
Serge Hallyn (serge-hallyn) wrote : Re: [Bug 1263738] Re: login console 0 in user namespace container is not configured right

Quoting Seth Forshee (<email address hidden>):
> stderr actually is mapped to a pty. The problem seems to be that getty
> can't set /dev/console as its controlling terminal because it's already
> the controlling tty for init, which is in a different process group.
> Thus getty ends up with no controlling tty, this is inherited by bash,
> and thus bash cannot set up job control.

Interesting.

Note that what you describe should also be the case if using a regular
container

 sudo lxc-create -t ubuntu-cloud -n u1
 sudo lxc-start -n u1

Is the process group of init somehow ending up different in the user
namespace case? Or else why would this only be a problem in the
user namespace case?