From 4aeca750216565f398b1dae5226294b88cac0a68 Mon Sep 17 00:00:00 2001 From: Coopydood <39441479+Coopydood@users.noreply.github.com> Date: Thu, 23 May 2024 00:06:45 +0100 Subject: [PATCH] Add kernel boot cmdline to sysprofiler --- scripts/sysprofiler.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/sysprofiler.py b/scripts/sysprofiler.py index 3864caf..d6b37d3 100644 --- a/scripts/sysprofiler.py +++ b/scripts/sysprofiler.py @@ -319,6 +319,9 @@ def cpydProfile(logMsg,warn=None): else: depVirsh = 1 +output_stream = os.popen("cat /proc/cmdline") +bootCmd = output_stream.read() + output_stream = os.popen('lspci') vmc1 = output_stream.read() @@ -438,6 +441,10 @@ def cpydProfile(logMsg,warn=None): cpydProfile("Release : "+distro.version()) cpydProfile("Kernel : "+platform.release()) +bootCmd = bootCmd.replace("\n","") +bootCmd = bootCmd.replace("BOOT_IMAGE=","") + +cpydProfile("BootCMD : "+str(bootCmd)) if isVM == False: cpydProfile("VM : NO") else: