diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 16:49:11 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 16:49:11 +0000 |
commit | f4f3a659b7663cf52c2f2e1fa8e58ed4000e29c9 (patch) | |
tree | 46477e488553a670f4b0346080d3f9a635672104 /debian/apport-hook.py | |
parent | Adding upstream version 7.0.6-dfsg. (diff) | |
download | virtualbox-f4f3a659b7663cf52c2f2e1fa8e58ed4000e29c9.tar.xz virtualbox-f4f3a659b7663cf52c2f2e1fa8e58ed4000e29c9.zip |
Adding debian version 7.0.6-dfsg-1.debian/7.0.6-dfsg-1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | debian/apport-hook.py | 11 |
1 files changed, 11 insertions, 0 deletions
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"]) |