[lxc-devel] [crio-lxc/master] create: pass right lxcpath to internal command

tych0 on Github lxc-bot at linuxcontainers.org
Fri Apr 19 16:29:13 UTC 2019


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 527 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20190419/4ba3df44/attachment.bin>
-------------- next part --------------
From ad7e2201130520e354cbfed5b9d4f5fbe1b1d67f Mon Sep 17 00:00:00 2001
From: Tycho Andersen <tycho at tycho.ws>
Date: Fri, 19 Apr 2019 10:24:56 -0600
Subject: [PATCH] create: pass right lxcpath to internal command

the lxcpath is not the rootfs of the container, but rather the base used
for calculating various things, such as the command socket path or default
rootfs/config locations.

Signed-off-by: Tycho Andersen <tycho at tycho.ws>
---
 cmd/create.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmd/create.go b/cmd/create.go
index c867ef2..6c52d33 100644
--- a/cmd/create.go
+++ b/cmd/create.go
@@ -195,7 +195,7 @@ func startContainer(c *lxc.Container, spec *specs.Spec) error {
 		binary,
 		"internal",
 		c.Name(),
-		spec.Root.Path,
+		LXC_PATH,
 		filepath.Join(LXC_PATH, c.Name(), "config"),
 	)
 


More information about the lxc-devel mailing list