summaryrefslogtreecommitdiff
path: root/0030-modify-daemon-json-default-runtime-to-runc.patch
diff options
context:
space:
mode:
Diffstat (limited to '0030-modify-daemon-json-default-runtime-to-runc.patch')
-rw-r--r--0030-modify-daemon-json-default-runtime-to-runc.patch52
1 files changed, 52 insertions, 0 deletions
diff --git a/0030-modify-daemon-json-default-runtime-to-runc.patch b/0030-modify-daemon-json-default-runtime-to-runc.patch
new file mode 100644
index 0000000..dd09a65
--- /dev/null
+++ b/0030-modify-daemon-json-default-runtime-to-runc.patch
@@ -0,0 +1,52 @@
+From b94f36b3d06abd711449b2e91303dfdd33f9c979 Mon Sep 17 00:00:00 2001
+From: zhongtao <zhongtao17@huawei.com>
+Date: Tue, 21 Nov 2023 21:31:48 +0800
+Subject: [PATCH 30/64] modify daemon json default runtime to runc
+
+Signed-off-by: zhongtao <zhongtao17@huawei.com>
+---
+ src/cmd/isula/base/create.h | 2 +-
+ src/cmd/isula/extend/stats.c | 1 -
+ src/contrib/config/daemon.json | 2 +-
+ 3 files changed, 2 insertions(+), 3 deletions(-)
+
+diff --git a/src/cmd/isula/base/create.h b/src/cmd/isula/base/create.h
+index 986be41f..9eb471b4 100644
+--- a/src/cmd/isula/base/create.h
++++ b/src/cmd/isula/base/create.h
+@@ -332,7 +332,7 @@ extern "C" {
+ "runtime", \
+ 'R', \
+ &(cmdargs).runtime, \
+- "Runtime to use for containers(default: lcr)", \
++ "Runtime to use for containers", \
+ NULL }, \
+ { CMD_OPT_TYPE_STRING_DUP, \
+ false, \
+diff --git a/src/cmd/isula/extend/stats.c b/src/cmd/isula/extend/stats.c
+index c11fe218..04485608 100644
+--- a/src/cmd/isula/extend/stats.c
++++ b/src/cmd/isula/extend/stats.c
+@@ -41,7 +41,6 @@ struct client_arguments g_cmd_stats_args = {
+ .showall = false,
+ .nostream = false,
+ .original = false,
+- .runtime = "lcr",
+ };
+
+ static struct isula_stats_response *g_oldstats = NULL;
+diff --git a/src/contrib/config/daemon.json b/src/contrib/config/daemon.json
+index 4faf4057..966e016a 100644
+--- a/src/contrib/config/daemon.json
++++ b/src/contrib/config/daemon.json
+@@ -1,6 +1,6 @@
+ {
+ "group": "isula",
+- "default-runtime": "lcr",
++ "default-runtime": "runc",
+ "graph": "/var/lib/isulad",
+ "state": "/var/run/isulad",
+ "log-level": "ERROR",
+--
+2.42.0
+