]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/start.c
systemd: specify container_ttys in environment
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Tue, 27 Jan 2015 23:06:22 +0000 (23:06 +0000)
committerStéphane Graber <stgraber@ubuntu.com>
Wed, 28 Jan 2015 08:15:43 +0000 (09:15 +0100)
commit393903d108f860bff092bb41b21f44fd20ea7045
tree6cbb38cfc1f437956e216a7187db724b3a53ace8
parent8d19ce7b9f8b294f054b719da5dc8e1c1d57860e
systemd: specify container_ttys in environment

The lxc.tty configuration item specifies a number of ttys to create.
Historically, for each of those, we create a /dev/pts/N entry and
symlink it to /dev/ttyN for older inits to use.  For systemd, we should
instead specify each tty name in a $container_ttys environment variable
passed to init.

See http://www.freedesktop.org/wiki/Software/systemd/ContainerInterface/ and
https://github.com/lxc/lxc/issues/419.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/conf.c
src/lxc/conf.h
src/lxc/start.c