192 |
- |
1 |
# Analyze
|
|
|
2 |
EVENT=post-create type=Kerneloops remote!=1
|
|
|
3 |
# Honor dmesg_restrict -> bugzilla.redhat.com/1128400
|
|
|
4 |
if [ "$(cat /proc/sys/kernel/dmesg_restrict)" == "0" ]; then
|
|
|
5 |
# >> instead of > is due to bugzilla.redhat.com/854266
|
|
|
6 |
# 'dmesg' file is required by check-oops-for-hw-error
|
|
|
7 |
dmesg >>dmesg
|
|
|
8 |
abrt-action-check-oops-for-hw-error
|
|
|
9 |
fi
|
|
|
10 |
{
|
|
|
11 |
abrt-action-check-oops-for-alt-component || true
|
|
|
12 |
} &&
|
|
|
13 |
{
|
|
|
14 |
# run abrt-action-analyze-oops only if check-hw-error didn't create the
|
|
|
15 |
# required files
|
|
|
16 |
if test ! -f uuid -a ! -f duphash; then
|
|
|
17 |
abrt-action-analyze-oops || exit 1
|
|
|
18 |
fi
|
|
|
19 |
}
|
|
|
20 |
|
|
|
21 |
|
|
|
22 |
# If you want behavior similar to one provided by kerneloops daemon
|
|
|
23 |
# distributed by kerneloops.org - that is, if you want
|
|
|
24 |
# oopses to be reported automatically and immediately without
|
|
|
25 |
# user interaction, uncomment this line:
|
|
|
26 |
#EVENT=post-create type=Kerneloops
|
|
|
27 |
reporter-kerneloops
|
|
|
28 |
|
|
|
29 |
# Report
|
|
|
30 |
#EVENT=report_Kerneloops type=Kerneloops
|
|
|
31 |
reporter-kerneloops
|
|
|
32 |
|
|
|
33 |
EVENT=report_Bugzilla type=Kerneloops
|
|
|
34 |
reporter-bugzilla -b \
|
|
|
35 |
-F /etc/libreport/plugins/bugzilla_format_kernel.conf
|
|
|
36 |
|
|
|
37 |
# Send micro report
|
|
|
38 |
EVENT=report_uReport type=Kerneloops
|
|
|
39 |
if [ ! -e mce ]; then
|
|
|
40 |
/usr/libexec/abrt-action-ureport
|
|
|
41 |
else
|
|
|
42 |
echo "Not reportable, problem has hardware character (MCE)"
|
|
|
43 |
fi
|
|
|
44 |
|
|
|
45 |
# Update ABRT database after successful report to bugzilla
|
|
|
46 |
EVENT=post_report type=Kerneloops
|
|
|
47 |
reporter-ureport -A -B
|
|
|
48 |
|
|
|
49 |
# Automatic/simple GUI-based kernel oopses reporting will do this:
|
|
|
50 |
EVENT=report-gui type=Kerneloops mce!=non-fatal
|
|
|
51 |
report-gtk -- "$DUMP_DIR"
|
|
|
52 |
|
|
|
53 |
EVENT=report-cli type=Kerneloops
|
|
|
54 |
report-cli -- "$DUMP_DIR"
|