aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Desrochers <eric.desrochers@canonical.com>2020-02-12 12:18:05 -0500
committerBryan Quigley <bryan.quigley@canonical.com>2020-02-13 16:35:30 -0800
commita1577563ad39ad35070b1ea44ea6fe3f0613d6b9 (patch)
treec4dc474628cbf43bb6b49e97df5388bc39faa58e
parent4a687b6dc84403156973947691be4922161545bf (diff)
downloadsos-a1577563ad39ad35070b1ea44ea6fe3f0613d6b9.tar.gz
[kdump] Switch lsinitrd in favor of lsinitramfs
lsinitramfs is more likely to be installed and useful. lsinitramfs -> initramfs-tools-core (main) -> Canonical maintain lsinitrd -> dracut-core (universe) -> Community maintain Also adding the '-l' argument to display long and more verbose listing of initramfs content. Resolves: #1942 Signed-off-by: Eric Desrochers <eric.desrochers@canonical.com> Signed-off-by: Bryan Quigley <bryan.quigley@canonical.com>
-rw-r--r--sos/plugins/kdump.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/plugins/kdump.py b/sos/plugins/kdump.py
index 787d308c..73eb493c 100644
--- a/sos/plugins/kdump.py
+++ b/sos/plugins/kdump.py
@@ -83,7 +83,7 @@ class DebianKDump(KDump, DebianPlugin, UbuntuPlugin):
initramfs_img = "/var/lib/kdump/initrd.img-" + platform.release()
if os.path.exists(initramfs_img):
- self.add_cmd_output("lsinitrd %s" % initramfs_img)
+ self.add_cmd_output("lsinitramfs -l %s" % initramfs_img)
self.add_cmd_output("kdump-config show")