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 <prudo@redhat.com>
This commit is contained in:
parent
0997f75a73
commit
9027fd2b15
1
kdumpctl
1
kdumpctl
@ -1643,6 +1643,7 @@ reset_crashkernel()
|
|||||||
|
|
||||||
_old_crashkernel=$(get_grub_kernel_boot_parameter "$_kernel" crashkernel)
|
_old_crashkernel=$(get_grub_kernel_boot_parameter "$_kernel" crashkernel)
|
||||||
_old_fadump_val=$(get_grub_kernel_boot_parameter "$_kernel" fadump)
|
_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
|
if [[ $_old_crashkernel != "$_new_crashkernel" || $_old_fadump_val != "$_new_fadump_val" ]]; then
|
||||||
_update_kernel_cmdline "$_kernel" "$_new_crashkernel" "$_new_dump_mode" "$_new_fadump_val"
|
_update_kernel_cmdline "$_kernel" "$_new_crashkernel" "$_new_dump_mode" "$_new_fadump_val"
|
||||||
if [[ $_reboot != yes ]]; then
|
if [[ $_reboot != yes ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user