The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/crio-lxc/pull/4

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===
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 <ty...@tycho.ws>
From ad7e2201130520e354cbfed5b9d4f5fbe1b1d67f Mon Sep 17 00:00:00 2001
From: Tycho Andersen <ty...@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 <ty...@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"),
        )
 
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to