]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/lxccontainer.c
lxcapi_clone: set the right environment variable for mounted fs
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Thu, 21 Nov 2013 15:05:59 +0000 (09:05 -0600)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 21 Nov 2013 15:25:43 +0000 (10:25 -0500)
commit24ef39f4d54e83996129463f7138ba90b26a166a
tree6529c4db6069a8d7fee67f194ce4264244657007
parentbc6928ffdb53145acb74a6cb1f958e53d5242696
lxcapi_clone: set the right environment variable for mounted fs

If the container is dir-backed, we don't actually mount it (to
support unprivileged use).  So always set the LXC_ROOTFS_MOUNT
to bdev->dest, not to the rootfs path specified in the container
configuration.

This should fix bug http://pad.lv/1253573

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