From aeeb6fce732362aebdef2e7636f19f73d3a4103c Mon Sep 17 00:00:00 2001 From: lifupan Date: Mon, 25 Nov 2019 10:33:43 +0800 Subject: [PATCH] grpc: fix the issue of wrong containers base dir The base dir should be "/run/kata-containers" instead of "/run/agent". Fixes: #92 Signed-off-by: lifupan --- src/agent/src/grpc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agent/src/grpc.rs b/src/agent/src/grpc.rs index d49671879e..2e3147f23a 100644 --- a/src/agent/src/grpc.rs +++ b/src/agent/src/grpc.rs @@ -56,7 +56,7 @@ use std::path::PathBuf; const SYSFS_MEMORY_BLOCK_SIZE_PATH: &'static str = "/sys/devices/system/memory/block_size_bytes"; const SYSFS_MEMORY_HOTPLUG_PROBE_PATH: &'static str = "/sys/devices/system/memory/probe"; pub const SYSFS_MEMORY_ONLINE_PATH: &'static str = "/sys/devices/system/memory"; -const CONTAINER_BASE: &'static str = "/run/agent"; +const CONTAINER_BASE: &'static str = "/run/kata-containers"; // Convenience macro to obtain the scope logger macro_rules! sl {