Package: src:systemd Followup-For: Bug #711245 Patch to add a bug-script to systemd.
This gives the output of systemd-delta, systemctl dump and the contents of /var/lib/systemd/deb-systemd-helper-enabled. Thanks, Daniel Schaal -- System Information: Debian Release: jessie/sid APT prefers unstable APT policy: (990, 'unstable'), (103, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.11.0-rc3-00004-g36f571e (SMP w/4 CPU cores) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
>From a387841a1f502232c525bffeaaa58945173ae1cc Mon Sep 17 00:00:00 2001 From: Daniel Schaal <farb...@web.de> Date: Sun, 28 Jul 2013 08:57:16 +0200 Subject: [PATCH] Add bug-script to systemd This gives the output of systemd-delta, systemctl dump and the contents of /var/lib/systemd/deb-systemd-helper-enabled. Closes: #711245 --- debian/systemd.bug-script | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 debian/systemd.bug-script diff --git a/debian/systemd.bug-script b/debian/systemd.bug-script new file mode 100644 index 0000000..a326f03 --- /dev/null +++ b/debian/systemd.bug-script @@ -0,0 +1,23 @@ +#!/bin/sh + +_header() { + echo "--------------" >&3 + echo "$1:" >&3 + echo "--------------" >&3 +} + +_header "systemd-delta" +# remove highlighting escape codes from systemd-delta output +systemd-delta --no-pager|sed "s%\x1b[^m]*m%%g" >&3 + +if [ -d /run/systemd/system ]; then + echo >&3 + _header "systemctl dump" + systemctl --no-pager dump >&3 +fi + +if [ -d /var/lib/systemd/deb-systemd-helper-enabled ]; then + echo >&3 + _header "Contents of /var/lib/systemd/deb-systemd-helper-enabled" + head -n100 $(find /var/lib/systemd/deb-systemd-helper-enabled -type f | tr '\n' ' ') +fi -- 1.8.4.rc0