]> git.proxmox.com Git - mirror_lxc.git/commit
Introduce --lxcpath cmdline option, and make default_lxc_path() return const char *
authorStéphane Graber <stgraber@ubuntu.com>
Tue, 19 Feb 2013 16:48:56 +0000 (11:48 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 19 Feb 2013 16:52:44 +0000 (11:52 -0500)
commit67e571de63a8e465dc8f1b17e16744a1d3fb552c
treef5ca083f0ff5315b54941a19088e5a754868fdd3
parent067cfaeb190f3bc25a6f5dbcb5a42d743b016458
Introduce --lxcpath cmdline option, and make default_lxc_path() return const char *

For the lxc-* C binaries, introduce a -P|--lxcpath command line option
to override the system default.

With this, I can

    lxc-create -t ubuntu -n r1
    lxc-create -t ubuntu -n r1 -P /home/ubuntu/lxcbase
    lxc-start -n r1 -d
    lxc-start -n r1 -d -P /home/ubuntu/lxcbase
    lxc-console -n r1 -d -P /home/ubuntu/lxcbase
    lxc-stop -n r1

all working with the right containers (module cgroup stuff).

To do:
    * lxc monitor needs to be made to handle cgroups.
      This is another very invasive one.  I started doing this as
      a part of this set, but that gets hairy, so I'm sending this
      separately.  Note that lxc-wait and lxc-monitor don't work
      without this, and there may be niggles in what I said works
      above - since start.c is doing lxc_monitor_send_state etc
      to the shared abstract unix domain socket.
    * Need to handle the cgroup conflicts.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
24 files changed:
doc/common_options.sgml.in
src/lua-lxc/core.c
src/lxc/arguments.c
src/lxc/arguments.h
src/lxc/commands.c
src/lxc/conf.c
src/lxc/lxc-create.in
src/lxc/lxc.h
src/lxc/lxc_attach.c
src/lxc/lxc_console.c
src/lxc/lxc_execute.c
src/lxc/lxc_info.c
src/lxc/lxc_kill.c
src/lxc/lxc_restart.c
src/lxc/lxc_start.c
src/lxc/lxc_stop.c
src/lxc/lxc_wait.c
src/lxc/lxccontainer.c
src/lxc/lxccontainer.h
src/lxc/restart.c
src/lxc/state.c
src/lxc/state.h
src/lxc/utils.c
src/lxc/utils.h