kdumpctl: lower the log level in reset_crashkernel_for_installed_kernel

Although upgrading the kernel with `rpm -Uvh` is not recommended, the
kexec-tools plugin prints confusing error logs when a customer upgrades the
kernel through it.

```
kdump: kernel 5.14.0-80.el9.x86_64 doesn't exist
kdump: Couldn't find current running kernel
```

Not finding the currently running kernel will only make kdump unable to copy the
grub entry parameters to the newly installed kernel, so lower the log level.

Signed-off-by: Lichen Liu <lichliu@redhat.com>
Reviewed-by: Coiby Xu <coxu@redhat.com>
This commit is contained in:
Lichen Liu 2023-04-04 14:13:14 +08:00 committed by Coiby Xu
parent 70c7598ef0
commit d619b6dabe
1 changed files with 2 additions and 2 deletions

View File

@ -1270,7 +1270,7 @@ _find_kernel_path_by_release()
_grubby_kernel_str=$(grubby --info ALL | grep "^kernel=.*$_release\"$")
_kernel_path=$(_filter_grubby_kernel_str "$_grubby_kernel_str")
if [[ -z $_kernel_path ]]; then
derror "kernel $_release doesn't exist"
ddebug "kernel $_release doesn't exist"
return 1
fi
echo -n "$_kernel_path"
@ -1642,7 +1642,7 @@ reset_crashkernel_for_installed_kernel()
fi
if ! _running_kernel=$(_get_current_running_kernel_path); then
derror "Couldn't find current running kernel"
ddebug "Couldn't find current running kernel"
exit
fi