[pkg-lxc-devel] Bug#1039737: reportbug: lxc-copy --ephemeral always fails
Mathias Gibbens
gibmat at debian.org
Sun Aug 20 21:37:16 BST 2023
Control: retitle -1 lxc: lxc-copy --ephemeral always fails
Control: tags -1 + confirmed
I've reproduced this locally, and come up with the following patch
which I've also forwarded upstream:
> diff --git a/src/lxc/conf.c b/src/lxc/conf.c
> index 9158713..f956f89 100644
> --- a/src/lxc/conf.c
> +++ b/src/lxc/conf.c
> @@ -512,6 +512,8 @@ int lxc_storage_prepare(struct lxc_conf *conf)
> return log_error(-1, "Failed to mount rootfs \"%s\" onto \"%s\" with options \"%s\"",
> rootfs->path, rootfs->mount,
> rootfs->mnt_opts.raw_options ? rootfs->mnt_opts.raw_options : "(null)");
> + if (!rootfs->bdev_type)
> + rootfs->bdev_type = strdup(rootfs->storage->type);
>
> return 0;
> }
Mathias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://alioth-lists.debian.net/pipermail/pkg-lxc-devel/attachments/20230820/9d777e5e/attachment.sig>
More information about the Pkg-lxc-devel
mailing list