]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
clone: don't set new containers' rootfs to the old
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Mon, 3 Mar 2014 19:57:14 +0000 (13:57 -0600)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Mon, 3 Mar 2014 19:57:14 +0000 (13:57 -0600)
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 <serge.hallyn@ubuntu.com>
src/lxc/lxccontainer.c

index c60f927177fd387b3b67c955d1708119efe66599..b0ae44b6b3daeb836966fe0459dcbaf7f401c13e 100644 (file)
@@ -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);