From 47c50f7a6206034cc0c1cc10d652384613ef9b23 Mon Sep 17 00:00:00 2001 From: Serge Hallyn Date: Mon, 3 Mar 2014 13:57:14 -0600 Subject: [PATCH] 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 --- src/lxc/lxccontainer.c | 1 - 1 file changed, 1 deletion(-) 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); -- 2.47.2