From 70d026420fe4eacfddb4abb544ded60c2a055dae Mon Sep 17 00:00:00 2001 From: Bryan Quigley Date: Mon, 24 Nov 2014 09:47:10 -0500 Subject: [apport] Add information on specific crashes The whoopsie ID let's us look the machine up on errors.ubuntu.com for crash reports. Partial output from /var/crash let's us better know what crashdumps the user has without uploading all of them. Signed-off-by: Bryan Quigley Signed-off-by: Adam Stokes --- sos/plugins/apport.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sos/plugins/apport.py b/sos/plugins/apport.py index 6756c78f..c942c2de 100644 --- a/sos/plugins/apport.py +++ b/sos/plugins/apport.py @@ -25,5 +25,12 @@ class Apport(Plugin, DebianPlugin, UbuntuPlugin): def setup(self): self.add_copy_spec("/etc/apport/*") + self.add_copy_spec("/var/lib/whoopsie/whoopsie-id") + self.add_cmd_output( + "gdbus call -y -d com.ubuntu.WhoopsiePreferences \ + -o /com/ubuntu/WhoopsiePreferences \ + -m com.ubuntu.WhoopsiePreferences.GetIdentifier") + self.add_cmd_output("ls -alh /var/crash/") + self.add_cmd_output("bash -c 'grep -B 50 -m 1 ProcMaps /var/crash/*'") # vim: et ts=4 sw=4 -- cgit