kdumpctl: lower the log level in reset_crashkernel_for_installed_kernel
Resolves: bz2078176
Upstream: Fedora
Conflict: None
commit d619b6dabe
Author: Lichen Liu <lichliu@redhat.com>
Date: Tue Apr 4 14:13:14 2023 +0800
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>
Signed-off-by: Lichen Liu <lichliu@redhat.com>
This commit is contained in:
parent
fa20bd98e5
commit
3a3c3a924a
4
kdumpctl
4
kdumpctl
@ -1385,7 +1385,7 @@ _find_kernel_path_by_release()
|
|||||||
_grubby_kernel_str=$(grubby --info ALL | grep "^kernel=.*$_release\"$")
|
_grubby_kernel_str=$(grubby --info ALL | grep "^kernel=.*$_release\"$")
|
||||||
_kernel_path=$(_filter_grubby_kernel_str "$_grubby_kernel_str")
|
_kernel_path=$(_filter_grubby_kernel_str "$_grubby_kernel_str")
|
||||||
if [[ -z $_kernel_path ]]; then
|
if [[ -z $_kernel_path ]]; then
|
||||||
derror "kernel $_release doesn't exist"
|
ddebug "kernel $_release doesn't exist"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
echo -n "$_kernel_path"
|
echo -n "$_kernel_path"
|
||||||
@ -1757,7 +1757,7 @@ reset_crashkernel_for_installed_kernel()
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if ! _running_kernel=$(_get_current_running_kernel_path); then
|
if ! _running_kernel=$(_get_current_running_kernel_path); then
|
||||||
derror "Couldn't find current running kernel"
|
ddebug "Couldn't find current running kernel"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user