Catch and upload coredumps in post-fail hook
We were doing this in a post-install test, but not on failures. We need it to figure out why Firefox is crashing on aarch64... Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
07527a8afa
commit
cdf33cc2ae
@ -49,6 +49,11 @@ sub post_fail_hook {
|
|||||||
upload_logs "/var/spool/abrt/spoolabrt.tar.gz";
|
upload_logs "/var/spool/abrt/spoolabrt.tar.gz";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# upload any core dump files caught by coredumpctl
|
||||||
|
unless (script_run "tar czvf /var/tmp/coredumps.tar.gz /var/lib/systemd/coredump/") {
|
||||||
|
upload_logs "/var/tmp/coredumps.tar.gz";
|
||||||
|
}
|
||||||
|
|
||||||
# Upload /var/log
|
# Upload /var/log
|
||||||
# lastlog can mess up tar sometimes and it's not much use
|
# lastlog can mess up tar sometimes and it's not much use
|
||||||
unless (script_run "tar czvf /tmp/var_log.tar.gz --exclude='lastlog' /var/log") {
|
unless (script_run "tar czvf /tmp/var_log.tar.gz --exclude='lastlog' /var/log") {
|
||||||
|
Loading…
Reference in New Issue
Block a user