From bdad647e939a668169395510ba30bccb7b4e2bfc Mon Sep 17 00:00:00 2001 From: Rich Megginson Date: Thu, 27 Jul 2023 11:53:24 -0600 Subject: [PATCH] fix: use failure_action instead of default on EL9 and later Cause: kdump uses the configuration option 'failure_action' instead of 'default' on EL9 and later. Consequence: kdump prints a warning to the logs: kdump: warning: option 'default' was renamed 'failure_action' and will be removed in the future. please update /etc/kdump.conf to use option 'failure_action' instead. Fix: Use 'failure_action' on EL9 and later. Result: kdump works normally on EL9 and later with no warnings to the logs. Signed-off-by: Rich Megginson --- templates/kdump.conf.j2 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/kdump.conf.j2 b/templates/kdump.conf.j2 index f5b95ad..0d9a62e 100644 --- a/templates/kdump.conf.j2 +++ b/templates/kdump.conf.j2 @@ -18,11 +18,13 @@ path {{ kdump_path }} {% if kdump_core_collector %} core_collector {{ kdump_core_collector }} {% endif %} -default {{ kdump_system_action }} {% if ansible_facts['distribution'] in ['RedHat', 'CentOS', 'Fedora'] %} {% if ansible_facts['distribution_major_version'] | int >= 9 %} auto_reset_crashkernel {{ kdump_auto_reset_crashkernel | bool | ternary("yes", "no") }} +failure_action {{ kdump_system_action }} +{% else %} +default {{ kdump_system_action }} {% endif %} {% if ansible_facts['distribution_major_version'] | int >= 7 %} {% if kdump_dracut_args %}