Be more conservative and upfront when attaching data to the bug report

Rework bug-script to be more upfront about what kind of data is gathered
and ask the user for permission before attaching the information to the
bug report.

Closes: #756248
This commit is contained in:
Michael Biebl 2014-09-14 17:10:16 +02:00
parent 6e3be33e8f
commit f3be74471d
2 changed files with 20 additions and 5 deletions

3
debian/changelog vendored
View File

@ -18,6 +18,9 @@ systemd (215-3) UNRELEASED; urgency=medium
on logind. (Closes: #758111)
* Bump dependency on systemd-shim to (>= 7-2) to ensure we have a version
which supports systemd >= 209.
* Rework bug-script to be more upfront about what kind of data is attached
and ask the user for permission before attaching the information to the
bug report. (Closes: #756248)
-- Martin Pitt <mpitt@debian.org> Mon, 08 Sep 2014 12:58:27 +0200

View File

@ -1,7 +1,22 @@
#!/bin/bash
REPORTBUG_VERSION=$(dpkg-query -f '${source:Version}' -W reportbug)
cat <<EOF
Providing additional information can help diagnose problems with systemd.
Specifically, this would include:
- fstab configuration (copy of /etc/fstab).
- local modifications of unit files (output of systemd-delta).
- state of running services and units (output of systemd-analzye dump).
- enabled/disabled state of installed services.
If this information is not relevant for your bug report or you have privacy
concerns, please choose no.
EOF
yesno "Do you want to provide additional information [Y|n]? " yep
[ "$REPLY" = yep ] || exit 0
REPORTBUG_VERSION=$(dpkg-query -f '${source:Version}' -W reportbug)
# Depending on whether reportbug is new enough, we either write the output of
# our various commands to a file and attach them to the report (this needs
@ -30,10 +45,7 @@ if dpkg --compare-versions "$REPORTBUG_VERSION" ge "6.5.0"; then
echo "$DIR/dsh-enabled.txt" >&3
fi
yesno "Do you want to provide fstab information [Y|n]? " yep
if [ "$REPLY" = yep ]; then
echo "/etc/fstab" >&3
fi
echo "/etc/fstab" >&3
echo "-- END ATTACHMENTS --" >&3
else