]> git.ipfire.org Git - thirdparty/libvirt.git/commit
lxc: export container=lxc-libvirt for systemd
authorEric Blake <eblake@redhat.com>
Tue, 24 Jan 2012 18:51:01 +0000 (11:51 -0700)
committerEric Blake <eblake@redhat.com>
Wed, 25 Jan 2012 15:25:37 +0000 (08:25 -0700)
commit16dc4ade7a2c83f166c7e8b8560a5fd42e662b53
tree15361284ca75618b408b0d93e9130638b7b8f22e
parentc30a78c398135577c3038199cb81bfaa19708cc5
lxc: export container=lxc-libvirt for systemd

Systemd detects containers based on whether they have
an environment variable starting with 'container=lxc';
using a longer name fits the expectations, while also
allowing detection of who created the container.

Requested by Lennart Poettering, in response to
https://bugs.freedesktop.org/show_bug.cgi?id=45175

* src/lxc/lxc_container.c (lxcContainerBuildInitCmd): Add another
env-var.
src/lxc/lxc_container.c