'''apport package hook for systemd (c) 2014 Canonical Ltd. Author: Martin Pitt <martin.pitt@ubuntu.com> ''' import os.path import apport.hookutils def add_info(report): apport.hookutils.attach_hardware(report) report['SystemdDelta'] = apport.hookutils.command_output(['systemd-delta']) if not os.path.exists('/run/systemd/system'): return # Add details about all failed units, if any out = apport.hookutils.command_output(['systemctl', '--state=failed', '--full', '--no-legend']).strip() if out: failed = '' for line in out.splitlines(): unit = line.split()[0] if failed: failed += '------\n' failed += apport.hookutils.command_output(['systemctl', 'status', '--full', unit]) report['SystemdFailedUnits'] = failed
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
cloud-init.py | File | 176 B | 0644 |
|
cryptsetup.py | File | 1.06 KB | 0644 |
|
isc-dhcp-client.py | File | 1.75 KB | 0644 |
|
openssh-client.py | File | 1.18 KB | 0644 |
|
openssh-server.py | File | 1004 B | 0644 |
|
source_apparmor.py | File | 2.72 KB | 0644 |
|
source_plymouth.py | File | 1.44 KB | 0644 |
|
source_shadow.py | File | 720 B | 0644 |
|
source_sudo.py | File | 1.13 KB | 0644 |
|
systemd.py | File | 871 B | 0644 |
|
udev.py | File | 455 B | 0644 |
|