]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/start.c
pass lxc_conf to the lxc_start function instead of the rcfile
authorDaniel Lezcano <daniel.lezcano@free.fr>
Thu, 26 Nov 2009 15:46:24 +0000 (16:46 +0100)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Thu, 26 Nov 2009 15:46:24 +0000 (16:46 +0100)
commitfae349da89b9ad063f0080970558b7f02ce233c2
treeafd20b7473fab04158143f151cdb5953fd3d4d0d
parentaedd9d3fb37448bd381549e887ea8242c73906b4
pass lxc_conf to the lxc_start function instead of the rcfile

The rcfile is parsed in the lxc_start function. This is not the place
to do that. Let's the caller to do that.

In the meantime, we have the lxc_conf structure filled right before
calling the lxc_start function so we can do some sanity check on the
configuration to not break the system when we launch the container.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
src/lxc/commands.c
src/lxc/console.c
src/lxc/lxc.h
src/lxc/lxc_execute.c
src/lxc/lxc_start.c
src/lxc/start.c
src/lxc/start.h