Commit b57b58d4 by Serge Hallyn Committed by Stéphane Graber

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: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>
parent d1d44d6b
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment