]> xenbits.xensource.com Git - libvirt.git/commit
Tweak container initialization to make upstart/init happier
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 4 Mar 2010 11:23:28 +0000 (11:23 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 5 Mar 2010 15:00:58 +0000 (15:00 +0000)
commitb70a1f455cacd847a8f00b276bc59e433ae2a651
tree7f8cc8b9011b69c6c736d445c529dfd5f9736a04
parent57db02e8c084dd6da2f64e442b575153a575eb41
Tweak container initialization to make upstart/init happier

Upstart crashes & burns in a heap if $TERM environment variable
is missing. Presumably the kernel always sets this when booting
init on a real machine, so libvirt should set it for containers
too.

To make a typical inittab / mingetty setup happier, we need to
symlink the primary console /dev/pts/0 to /dev/tty1.

Improve logging in certain scenarios to make troubleshooting
easier

* src/lxc/lxc_container.c: Create /dev/tty1 and set $TERM
src/lxc/lxc_container.c