192 |
- |
1 |
EVENT=post-create type=vmcore remote!=1
|
|
|
2 |
(
|
|
|
3 |
# If kdump machinery already extracted dmesg...
|
|
|
4 |
if test -f vmcore-dmesg.txt; then
|
|
|
5 |
# ...use that
|
|
|
6 |
abrt-dump-oops -u $DUMP_DIR vmcore-dmesg.txt || exit $?
|
|
|
7 |
#
|
|
|
8 |
# Does "kernel" element exist?
|
|
|
9 |
test -f kernel && exit 0
|
|
|
10 |
#
|
|
|
11 |
# Try creating it from vmcore-dmesg.txt:
|
|
|
12 |
# MCE oopses don't have kernel version in them,
|
|
|
13 |
# but it should be specified earlier in the log.
|
|
|
14 |
k=`sed -n '/Linux version/ s/.*Linux version \([^ ]*\) .*/\1/p' vmcore-dmesg.txt | tail -n1`
|
|
|
15 |
test "$k" != "" && printf "%s" "$k" >kernel
|
|
|
16 |
else
|
|
|
17 |
# No vmcore-dmesg.txt, do it the hard way:
|
|
|
18 |
abrt-action-analyze-vmcore || exit $?
|
|
|
19 |
#
|
|
|
20 |
# Does "kernel" element exist?
|
|
|
21 |
test -f kernel && exit 0
|
|
|
22 |
#
|
|
|
23 |
# Try creating it from dmesg_log (created by abrt-action-analyze-vmcore):
|
|
|
24 |
test -f dmesg_log || exit 0
|
|
|
25 |
k=`sed -n '/Linux version/ s/.*Linux version \([^ ]*\) .*/\1/p' dmesg_log | tail -n1`
|
|
|
26 |
test "$k" != "" && printf "%s" "$k" >kernel
|
|
|
27 |
fi
|
|
|
28 |
)
|
|
|
29 |
# Do not fail the event (->do not delete problem dir)
|
|
|
30 |
# if check-oops-for-hw-error exits nonzero:
|
|
|
31 |
{ abrt-action-check-oops-for-hw-error || true; }
|
|
|
32 |
{ abrt-action-check-oops-for-alt-component || true; }
|
|
|
33 |
|
|
|
34 |
# analyze
|
|
|
35 |
EVENT=analyze_VMcore type=vmcore
|
|
|
36 |
abrt-action-analyze-oops &&
|
|
|
37 |
abrt-action-save-package-data
|
|
|
38 |
|
|
|
39 |
# If you want behavior similar to one provided by kerneloops daemon
|
|
|
40 |
# distributed by kerneloops.org - that is, if you want
|
|
|
41 |
# oopses to be reported automatically and immediately without
|
|
|
42 |
# user interaction, uncomment this line:
|
|
|
43 |
#EVENT=post-create type=vmcore
|
|
|
44 |
reporter-kerneloops
|
|
|
45 |
|
|
|
46 |
# report
|
|
|
47 |
EVENT=report_Kerneloops type=vmcore
|
|
|
48 |
reporter-kerneloops
|
|
|
49 |
|
|
|
50 |
EVENT=report_Bugzilla type=vmcore
|
|
|
51 |
reporter-bugzilla -b \
|
|
|
52 |
-F /etc/libreport/plugins/bugzilla_format_kernel.conf
|
|
|
53 |
|
|
|
54 |
# update ABRT database after successful report to bugzilla
|
|
|
55 |
EVENT=post_report type=vmcore
|
|
|
56 |
reporter-ureport -A -B
|
|
|
57 |
|
|
|
58 |
# Send micro report
|
|
|
59 |
EVENT=report_uReport type=vmcore
|
|
|
60 |
/usr/libexec/abrt-action-ureport
|
|
|
61 |
|
|
|
62 |
EVENT=report-gui type=vmcore
|
|
|
63 |
report-gtk -- "$DUMP_DIR"
|
|
|
64 |
|
|
|
65 |
EVENT=report-cli type=vmcore
|
|
|
66 |
report-cli -- "$DUMP_DIR"
|