]> git.ipfire.org Git - thirdparty/lxc.git/commit
add dir support
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Fri, 21 Feb 2014 20:36:06 +0000 (14:36 -0600)
committerStéphane Graber <stgraber@ubuntu.com>
Sat, 22 Feb 2014 23:33:59 +0000 (18:33 -0500)
commit7bb878863c0e76bddb0bb062234c2ae1e4b3fb06
treef296d8d1863a28ab239546df77a30920439ec512
parentb2fe91c7d4e9dd26903dca9801a32a03a65bd2a4
add dir support

It used to be supported with the lxc-create.in script, and
the manpage says it's supported...  So let's just support it.

Now

sudo lxc-create -t download --dir /opt/ab -n ab

works, creating the container rootfs under /opt/ab.  This
generally isn't something I'd recommend, however telling users
to use a different lxc-path isn't as friendly as I'd like,
because each lxcpath requires separate lxc-ls and lxc-autostart
runs.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/bdev.c
src/lxc/bdev.h
src/lxc/lxc_create.c