From 9027fd2b15c55623f90722d13e97cd4798a9b6e0 Mon Sep 17 00:00:00 2001 From: Philipp Rudo Date: Thu, 11 Jul 2024 11:39:17 +0200 Subject: [PATCH] kdumpctl: Fix misleading message and erratic reboot in reset_crashkernel Resolves: RHEL-42442 Resolves: RHEL-22171 Upstream: RHEL-only This bug was fixed upstream in 574f8f5 ("kdumpctl: Simplify fadump handling in reset_crashkernel"). Backporting this commit to RHEL9 would require also to backport other commits that would change the behavior of reset-crashkernel, e.g. no longer setting the default kernel command line in the grub config. These changes are too invasive for RHEL9. Thus go with a minimalistic RHEL-only fix. Signed-off-by: Philipp Rudo --- kdumpctl | 1 + 1 file changed, 1 insertion(+) diff --git a/kdumpctl b/kdumpctl index 03d3fd4..cb20708 100755 --- a/kdumpctl +++ b/kdumpctl @@ -1643,6 +1643,7 @@ reset_crashkernel() _old_crashkernel=$(get_grub_kernel_boot_parameter "$_kernel" crashkernel) _old_fadump_val=$(get_grub_kernel_boot_parameter "$_kernel" fadump) + [[ "$_new_fadump_val" == off ]] && _new_fadump_val="" if [[ $_old_crashkernel != "$_new_crashkernel" || $_old_fadump_val != "$_new_fadump_val" ]]; then _update_kernel_cmdline "$_kernel" "$_new_crashkernel" "$_new_dump_mode" "$_new_fadump_val" if [[ $_reboot != yes ]]; then