0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-11-23 13:46:16 +00:00
termux-packages/root-packages/containerd/bundle.go.patch
Henrik Grimler 4d85c85632
chore(root/containerd): load config from and put stuff in $TERMUX_PREFIX
Has been changed in docker package, so needs to be changed in
containerd as well.
2023-10-23 22:07:38 +02:00

14 lines
699 B
Diff

diff --git a/data/data/com.termux/files/home/test/containerd-1.4.3/runtime/v1/linux/bundle.go b/runtime/v1/linux/bundle.go
index 9d0a6c4..a2063b2 100644
--- a/data/data/com.termux/files/home/test/containerd-1.4.3/runtime/v1/linux/bundle.go
+++ b/runtime/v1/linux/bundle.go
@@ -138,7 +138,7 @@ func (b *bundle) legacyShimAddress(namespace string) string {
return filepath.Join(string(filepath.Separator), "containerd-shim", namespace, b.id, "shim.sock")
}
-const socketRoot = "/run/containerd"
+const socketRoot = "@TERMUX_PREFIX@/var/run/containerd"
func (b *bundle) shimAddress(namespace, socketPath string) string {
d := sha256.Sum256([]byte(filepath.Join(socketPath, namespace, b.id)))