Comment 1 for bug 913952

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

There are 3 causes, all stemming from commit 3aa6b68f7e19fa3e1c2bba75bee921a98b7b46af in upstream util-linux.

1. getty no longer accepts a full pathname. It prepends '/dev' to the string it uses to open the file. /etc/init/console.conf in lxcguest passes /dev/console. Rather than changing getty, this can be changed in console.conf by passing just 'console'.

2. ioctl(fd, TIOCSCTTY) is called twice, and returns -EPERM for the container's console. Upstream commit 1593b134ebf596ae7a2b1e73f2dcc8c4e7febddd fixes that by change log_err to log_warn.

3. a new call to tcsetpgrp is added, which returns Inappropriate ioctl for device. This is still present in upstream util-linux, but changing the following log_err to log_warn allows getty to succeed.

With each of these changes, precise containers have a console again.