Skip to content

Commit c65d2d1

Browse files
committed
[kdump] restrict lsinitrd command to fetch only modules
While validating dump component let's restrict lsinitrd command to only output dump component list instead of the full initrd content. This will avoid a false match when a path of a file in initrd contains dump modules names. Additionally, it improves the module lookup time. Signed-off-by: Sourabh Jain <sourabhjain@linux.ibm.com>
1 parent 55a13db commit c65d2d1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • servicereportpkg/validate/plugins

servicereportpkg/validate/plugins/kdump.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def check_dump_component_in_initrd(self):
6969
status = False
7070

7171
else:
72-
(return_code, stdout) = execute_command(["lsinitrd",
72+
(return_code, stdout) = execute_command(["lsinitrd", "-m",
7373
self.initial_ramdisk])[:-1]
7474

7575
if return_code is None:

0 commit comments

Comments
 (0)