mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-03 15:56:45 +00:00
clone: make sure to update the rootfs path in unexpanded conf
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
parent
761d81cad8
commit
d021832111
@ -2546,6 +2546,12 @@ static int copy_storage(struct lxc_container *c0, struct lxc_container *c,
|
||||
ERROR("Out of memory while setting storage path");
|
||||
return -1;
|
||||
}
|
||||
free(c->lxc_unexp_conf->rootfs.path);
|
||||
c->lxc_unexp_conf->rootfs.path = strdup(c->lxc_conf->rootfs.path);
|
||||
if (!c->lxc_unexp_conf->rootfs.path) {
|
||||
ERROR("Out of memory while setting storage path");
|
||||
return -1;
|
||||
}
|
||||
if (flags & LXC_CLONE_SNAPSHOT)
|
||||
copy_rdepends(c, c0);
|
||||
if (need_rdep) {
|
||||
|
Loading…
Reference in New Issue
Block a user