Commit e99de7b9 authored by Daniel Schaal's avatar Daniel Schaal Committed by Michael Stapelberg

Add bug-script to systemd and udev

This gives the output of systemd-delta, systemctl dump
and the contents of /var/lib/systemd/deb-systemd-helper-enabled.

Print the udev database for udev.

Closes: #711245
parent 410f6ca9
#!/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' ' ') >&3
fi
#!/bin/sh
echo "--------------" >&3
echo "udev database:" >&3
echo "--------------" >&3
udevadm info --export-db >&3
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment