From 938d9c1f22b9850108feac2674a21d66c89d724f Mon Sep 17 00:00:00 2001 From: lixiaoyong1 Date: Wed, 12 Jun 2024 10:34:16 +0800 Subject: [PATCH] Collect all kernel info in function __get_boot_param_info --- category/get_sysparam_info.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/category/get_sysparam_info.py b/category/get_sysparam_info.py index bc43689..9f3da61 100644 --- a/category/get_sysparam_info.py +++ b/category/get_sysparam_info.py @@ -30,3 +30,7 @@ class SysParamInfo: cmd_name = "cmdline" cmd_result = Command.cmd_run(bootparam_command) res_cmd = FileOperation.wrap_output_format(cmd_name, cmd_result, '-') + + kernel_command = "grubby --info=ALL | grep ^kernel" + ker_result = Command.cmd_run(kernel_command) + res_gk = FileOperation.wrap_output_format(cmd_name, ker_result, '-') -- Gitee