From d9a77b3de290e2b178a40830dc790bd05f5d4c70 Mon Sep 17 00:00:00 2001 From: "James O. D. Hunt" Date: Tue, 27 Mar 2018 17:55:25 +0100 Subject: [PATCH 1/2] docs: dev guide whitespace fix Add a blank line to the dev guide. Signed-off-by: James O. D. Hunt --- Developer-Guide.md | 1 + 1 file changed, 1 insertion(+) diff --git a/Developer-Guide.md b/Developer-Guide.md index 6d7b2d4098..344889fddc 100644 --- a/Developer-Guide.md +++ b/Developer-Guide.md @@ -65,6 +65,7 @@ If your system is *not* able to run Kata Containers, the previous command will e ## Enable full debug Enable full debug as follows: + ``` $ sudo sed -i -e 's/^# *\(enable_debug\).*=.*$/\1 = true/g' /usr/share/defaults/kata-containers/configuration.toml $ sudo sed -i -e 's/^kernel_params = ""/kernel_params = "agent.log=debug"/g' /usr/share/defaults/kata-containers/configuration.toml From 3b71b5728606cc0fde4a969fde220df4608a75b6 Mon Sep 17 00:00:00 2001 From: "James O. D. Hunt" Date: Tue, 27 Mar 2018 17:55:47 +0100 Subject: [PATCH 2/2] docs: Improve command to enable agent debug Change the command to enable agent debug slightly so that even if the config file specifies kernel parameters, the command will successfully enable the agent debug. Fixes #38. Signed-off-by: James O. D. Hunt --- Developer-Guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Developer-Guide.md b/Developer-Guide.md index 344889fddc..1e56fc9600 100644 --- a/Developer-Guide.md +++ b/Developer-Guide.md @@ -68,7 +68,7 @@ Enable full debug as follows: ``` $ sudo sed -i -e 's/^# *\(enable_debug\).*=.*$/\1 = true/g' /usr/share/defaults/kata-containers/configuration.toml -$ sudo sed -i -e 's/^kernel_params = ""/kernel_params = "agent.log=debug"/g' /usr/share/defaults/kata-containers/configuration.toml +$ sudo sed -i -e 's/^kernel_params = "\(.*\)"/kernel_params = "\1 agent.log=debug"/g' /usr/share/defaults/kata-containers/configuration.toml ``` # Build and install Kata proxy