|
Packit |
8ea169 |
# Analyze
|
|
Packit |
8ea169 |
EVENT=post-create type=Kerneloops remote!=1
|
|
Packit |
8ea169 |
# Honor dmesg_restrict -> bugzilla.redhat.com/1128400
|
|
Packit |
8ea169 |
if [ "$(cat /proc/sys/kernel/dmesg_restrict)" == "0" ]; then
|
|
Packit |
8ea169 |
# >> instead of > is due to bugzilla.redhat.com/854266
|
|
Packit |
8ea169 |
# 'dmesg' file is required by check-oops-for-hw-error
|
|
Packit |
8ea169 |
dmesg >>dmesg
|
|
Packit |
8ea169 |
abrt-action-check-oops-for-hw-error
|
|
Packit |
8ea169 |
fi
|
|
Packit |
8ea169 |
{
|
|
Packit |
8ea169 |
abrt-action-check-oops-for-alt-component || true
|
|
Packit |
8ea169 |
} &&
|
|
Packit |
8ea169 |
{
|
|
Packit |
8ea169 |
# run abrt-action-analyze-oops only if check-hw-error didn't create the
|
|
Packit |
8ea169 |
# required files
|
|
Packit |
8ea169 |
if test ! -f uuid -a ! -f duphash; then
|
|
Packit |
8ea169 |
abrt-action-analyze-oops || exit 1
|
|
Packit |
8ea169 |
fi
|
|
Packit |
8ea169 |
}
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
# If you want behavior similar to one provided by kerneloops daemon
|
|
Packit |
8ea169 |
# distributed by kerneloops.org - that is, if you want
|
|
Packit |
8ea169 |
# oopses to be reported automatically and immediately without
|
|
Packit |
8ea169 |
# user interaction, uncomment this line:
|
|
Packit |
8ea169 |
#EVENT=post-create type=Kerneloops
|
|
Packit |
8ea169 |
reporter-kerneloops
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
# Report
|
|
Packit |
8ea169 |
#EVENT=report_Kerneloops type=Kerneloops
|
|
Packit |
8ea169 |
reporter-kerneloops
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
EVENT=report_Bugzilla type=Kerneloops
|
|
Packit |
8ea169 |
reporter-bugzilla -b \
|
|
Packit |
8ea169 |
-F /etc/libreport/plugins/bugzilla_format_kernel.conf
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
# Send micro report
|
|
Packit |
8ea169 |
EVENT=report_uReport type=Kerneloops
|
|
Packit |
8ea169 |
if [ ! -e mce ]; then
|
|
Packit |
8ea169 |
/usr/libexec/abrt-action-ureport
|
|
Packit |
8ea169 |
else
|
|
Packit |
8ea169 |
echo "Not reportable, problem has hardware character (MCE)"
|
|
Packit |
8ea169 |
fi
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
# Update ABRT database after successful report to bugzilla
|
|
Packit |
8ea169 |
EVENT=post_report type=Kerneloops
|
|
Packit |
8ea169 |
reporter-ureport -A -B
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
# Automatic/simple GUI-based kernel oopses reporting will do this:
|
|
Packit |
8ea169 |
EVENT=report-gui type=Kerneloops mce!=non-fatal
|
|
Packit |
8ea169 |
report-gtk -- "$DUMP_DIR"
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
EVENT=report-cli type=Kerneloops
|
|
Packit |
8ea169 |
report-cli -- "$DUMP_DIR"
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
EVENT=report_systemd-journal type=Kerneloops
|
|
Packit |
8ea169 |
reporter-systemd-journal --message-id 8ed36508c5a24d0ab2d633f330899e5f \
|
|
Packit |
8ea169 |
-F /etc/libreport/plugins/catalog_koops_format.conf
|