blob: 65b30aa6a3c52572a7ff4be182be080e214929f3 [file] [log] [blame]
Lorenz Brun74e8e5c2021-01-26 14:00:50 +01001Copyright 2020 The Monogon Project Authors.
2
3Licensed under the Apache License, Version 2.0 (the "License");
4you may not use this file except in compliance with the License.
5You may obtain a copy of the License at
6
7 http://www.apache.org/licenses/LICENSE-2.0
8
9Unless required by applicable law or agreed to in writing, software
10distributed under the License is distributed on an "AS IS" BASIS,
11WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12See the License for the specific language governing permissions and
13limitations under the License.
14
15
16From 0b2583e76ac9f9675bbd539485918c96da830d21 Mon Sep 17 00:00:00 2001
17From: Lorenz Brun <lorenz@brun.one>
18Date: Mon, 25 Jan 2021 18:20:01 +0100
19Subject: [PATCH] Point CacheDir to the correct location for Metropolis
20
21This is arguably an ugly hack, but they hardcoded it and the fastest way to
22access anything resembling a config is through three different repos:
23containernetworking/cni -> containerd/go-cni -> containerd/cri ->
24containerd/containerd.
25---
26 libcni/api.go | 2 +-
27 1 file changed, 1 insertion(+), 1 deletion(-)
28
29diff --git a/libcni/api.go b/libcni/api.go
30index 7e52bd8..7f3dfe6 100644
31--- a/libcni/api.go
32+++ b/libcni/api.go
33@@ -30,7 +30,7 @@ import (
34 )
35
36 var (
37- CacheDir = "/var/lib/cni"
38+ CacheDir = "/ephemeral/containerd/cni-cache"
39 )
40
41 const (
42--
432.25.1
44