mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-06 12:18:35 +00:00
clone: don't copy rdepends when not doing a snapshot clone
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
parent
2a2d36a425
commit
eee59f9408
@ -1935,7 +1935,8 @@ static int copy_storage(struct lxc_container *c0, struct lxc_container *c,
|
||||
ERROR("Out of memory while setting storage path");
|
||||
return -1;
|
||||
}
|
||||
copy_rdepends(c, c0);
|
||||
if (flags & LXC_CLONE_SNAPSHOT)
|
||||
copy_rdepends(c, c0);
|
||||
if (need_rdep) {
|
||||
if (!add_rdepends(c, c0))
|
||||
WARN("Error adding reverse dependency from %s to %s",
|
||||
|
Loading…
Reference in New Issue
Block a user