From 0494175483c2d82f445ddca9cadb6ee6338e9f9c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 6 May 2024 05:01:54 +0200 Subject: Adding debian version 6.0.4-dfsg-7. Signed-off-by: Daniel Baumann --- debian/apport-hook.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 debian/apport-hook.py (limited to 'debian/apport-hook.py') diff --git a/debian/apport-hook.py b/debian/apport-hook.py new file mode 100644 index 00000000..5fb61618 --- /dev/null +++ b/debian/apport-hook.py @@ -0,0 +1,11 @@ +import apport.hookutils + +def add_info(report): + """Add a list of installed packages matching 'virtualbox' or 'linux-headers'""" + report['VirtualBox.DpkgList'] = apport.hookutils.command_output(["sh", "-c", "dpkg -l | grep -e virtualbox -e linux-headers"]) + + """Add information about installed VirtualBox kernel modules""" + report['VirtualBox.ModInfo'] = apport.hookutils.command_output(["sh", "-c", + "find /lib/modules/`uname -r` -name \"vbox*\" | xargs -r modinfo"]) + + report['LsMod'] = apport.hookutils.command_output(["lsmod"]) -- cgit v1.2.3