[lxc-devel] [lxd/master] lxc-to-lxd: Handle snap better

stgraber on Github lxc-bot at linuxcontainers.org
Fri Oct 9 11:29:56 UTC 2020


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 445 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20201009/8390c5f5/attachment.bin>
-------------- next part --------------
From 11450c0a9c9c428a7f27f4cc90da05e78b5828a2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Fri, 9 Oct 2020 07:29:24 -0400
Subject: [PATCH] lxc-to-lxd: Handle snap better
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
 lxc-to-lxd/main_migrate.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lxc-to-lxd/main_migrate.go b/lxc-to-lxd/main_migrate.go
index 5012afbe85..7937b847f0 100644
--- a/lxc-to-lxd/main_migrate.go
+++ b/lxc-to-lxd/main_migrate.go
@@ -71,7 +71,7 @@ func (c *cmdMigrate) RunE(cmd *cobra.Command, args []string) error {
 	}
 
 	// Retrieve LXC containers
-	for _, container := range liblxc.Containers(c.flagLXCPath) {
+	for _, container := range liblxc.Containers(shared.HostPathFollow(c.flagLXCPath)) {
 		if !c.flagAll && !shared.StringInSlice(container.Name(), c.flagContainers) {
 			continue
 		}


More information about the lxc-devel mailing list