Merge pull request #4688 from quanweiZhou/fix_sandbox_cgroup_false

runtime-rs: fix sandbox_cgroup_only=false panic
This commit is contained in:
Bin Liu
2022-07-19 20:38:57 +08:00
committed by GitHub

View File

@@ -12,5 +12,5 @@
// /sys/fs/cgroup/memory/kata_overhead/$CGPATH where $CGPATH is
// defined by the orchestrator.
pub(crate) fn gen_overhead_path(path: &str) -> String {
format!("/kata_overhead/{}", path.trim_start_matches('/'))
format!("kata_overhead/{}", path.trim_start_matches('/'))
}