Skip to content

Commit

Permalink
clone: don't set new containers' rootfs to the old
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
hallyn authored and stgraber committed Mar 3, 2014
1 parent d1d44d6 commit b57b58d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/lxc/lxccontainer.c
Expand Up @@ -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);
Expand Down

0 comments on commit b57b58d

Please sign in to comment.