From 6913bb988870e8ad2753e7edc26e0365049f818a Mon Sep 17 00:00:00 2001 From: Leonid Plyushch Date: Sun, 14 Jul 2019 15:32:35 +0300 Subject: [PATCH] runc: fix path to runtime directory --- root-packages/runc/main.go.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 root-packages/runc/main.go.patch diff --git a/root-packages/runc/main.go.patch b/root-packages/runc/main.go.patch new file mode 100644 index 000000000..688f5b972 --- /dev/null +++ b/root-packages/runc/main.go.patch @@ -0,0 +1,12 @@ +diff -uNr runc-1.0.0-rc8/main.go runc-1.0.0-rc8.mod/main.go +--- runc-1.0.0-rc8/main.go 2019-04-25 00:48:25.000000000 +0300 ++++ runc-1.0.0-rc8.mod/main.go 2019-07-14 15:25:25.741022025 +0300 +@@ -62,7 +62,7 @@ + v = append(v, fmt.Sprintf("spec: %s", specs.Version)) + app.Version = strings.Join(v, "\n") + +- root := "/run/runc" ++ root := "@TERMUX_PREFIX@/tmp/runc" + if shouldHonorXDGRuntimeDir() { + if runtimeDir := os.Getenv("XDG_RUNTIME_DIR"); runtimeDir != "" { + root = runtimeDir + "/runc"