From: Serge Hallyn Date: Mon, 3 Mar 2014 19:57:14 +0000 (-0600) Subject: clone: don't set new containers' rootfs to the old X-Git-Tag: lxc-1.1.0.alpha1~247 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47c50f7a6206034cc0c1cc10d652384613ef9b23;p=thirdparty%2Flxc.git clone: don't set new containers' rootfs to the old If clone is called from the api, the container object in memory retains the bad fs. The line is wrong, being a leftover from a previous attempt before copy_storage was moved earlier. Signed-off-by: Serge Hallyn --- diff --git a/src/lxc/lxccontainer.c b/src/lxc/lxccontainer.c index c60f92717..b0ae44b6b 100644 --- a/src/lxc/lxccontainer.c +++ b/src/lxc/lxccontainer.c @@ -2677,7 +2677,6 @@ static struct lxc_container *lxcapi_clone(struct lxc_container *c, const char *n ERROR("clone: failed to create new container (%s %s)", n, l); goto out; } - c2->lxc_conf->rootfs.path = origroot; // copy/snapshot rootfs's ret = copy_storage(c, c2, bdevtype, flags, bdevdata, newsize);