]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Auto-add a root <filesystem> element to LXC containers on startup
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 3 Apr 2013 15:19:24 +0000 (16:19 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 4 Apr 2013 09:51:59 +0000 (10:51 +0100)
commitc131525bec5af248e3843224bc5ce8d6435760f0
treeba5d3d132ff01d7d69f9a33611fcef39ecc04ff8
parentf7e8653f7e3c3f03d59a4c7516e9f5e5ed1f37ff
Auto-add a root <filesystem> element to LXC containers on startup

Currently the LXC container code has two codepaths, depending on
whether there is a <filesystem> element with a target path of '/'.
If we automatically add a <filesystem> device with src=/ and dst=/,
for any container which has not specified a root filesystem, then
we only need one codepath for setting up the filesystem.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/lxc/lxc_container.c
src/lxc/lxc_process.c