From fb7390ce3c6549aff8e824a1c571a210cf99a0a8 Mon Sep 17 00:00:00 2001 From: Alex Lyn Date: Thu, 22 Jan 2026 17:44:57 +0800 Subject: [PATCH] doc: update enabling full debug method The enable_debug parameter was explicitly set to false rather than being commented out (e.g., # enable_debug = true). As the previous enabling method failed to account for this explicit setting, it was rendered invalid. This commit updates the matching logic to correctly handle and toggle the explicit false value. Signed-off-by: Alex Lyn --- docs/Developer-Guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Developer-Guide.md b/docs/Developer-Guide.md index 8a1c64dbea..5ce40d451f 100644 --- a/docs/Developer-Guide.md +++ b/docs/Developer-Guide.md @@ -125,7 +125,7 @@ If you want to enable SELinux in Permissive mode, add `enforcing=0` to the kerne Enable full debug as follows: ```bash -$ sudo sed -i -e 's/^# *\(enable_debug\).*=.*$/\1 = true/g' /etc/kata-containers/configuration.toml +$ sudo sed -i -E 's/^(\s*enable_debug\s*=\s*)false/\1true/' /etc/kata-containers/configuration.toml $ sudo sed -i -e 's/^kernel_params = "\(.*\)"/kernel_params = "\1 agent.log=debug initcall_debug"/g' /etc/kata-containers/configuration.toml ```