Prefix reset-crashkernel-{for-installed_kernel,after-update} with underscore
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2048690 To indicate they are for internal use only, underscore them. Reported-by: rcheerla@redhat.com Signed-off-by: Coiby Xu <coxu@redhat.com> Reviewed-by: Lichen Liu <lichenliu@redhat.com>
This commit is contained in:
parent
fc1c79ffd2
commit
a7ead187a4
@ -7,7 +7,7 @@ KERNEL_IMAGE="$4"
|
|||||||
|
|
||||||
case "$COMMAND" in
|
case "$COMMAND" in
|
||||||
add)
|
add)
|
||||||
kdumpctl reset-crashkernel-for-installed_kernel "$KERNEL_VERSION"
|
kdumpctl _reset-crashkernel-for-installed_kernel "$KERNEL_VERSION"
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
4
kdumpctl
4
kdumpctl
@ -1764,12 +1764,12 @@ main()
|
|||||||
shift
|
shift
|
||||||
reset_crashkernel "$@"
|
reset_crashkernel "$@"
|
||||||
;;
|
;;
|
||||||
reset-crashkernel-after-update)
|
_reset-crashkernel-after-update)
|
||||||
if [[ $(kdump_get_conf_val auto_reset_crashkernel) != no ]]; then
|
if [[ $(kdump_get_conf_val auto_reset_crashkernel) != no ]]; then
|
||||||
reset_crashkernel_after_update
|
reset_crashkernel_after_update
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
reset-crashkernel-for-installed_kernel)
|
_reset-crashkernel-for-installed_kernel)
|
||||||
if [[ $(kdump_get_conf_val auto_reset_crashkernel) != no ]]; then
|
if [[ $(kdump_get_conf_val auto_reset_crashkernel) != no ]]; then
|
||||||
reset_crashkernel_for_installed_kernel "$2"
|
reset_crashkernel_for_installed_kernel "$2"
|
||||||
fi
|
fi
|
||||||
|
@ -342,7 +342,7 @@ done
|
|||||||
# 2. "[ $1 == 1 ]" in posttrans scriptlet means both install and upgrade. The
|
# 2. "[ $1 == 1 ]" in posttrans scriptlet means both install and upgrade. The
|
||||||
# former case is used to set up crashkernel for osbuild
|
# former case is used to set up crashkernel for osbuild
|
||||||
if [ ! -f /run/ostree-booted ] && [ $1 == 1 ]; then
|
if [ ! -f /run/ostree-booted ] && [ $1 == 1 ]; then
|
||||||
kdumpctl reset-crashkernel-after-update
|
kdumpctl _reset-crashkernel-after-update
|
||||||
rm /tmp/old_default_crashkernel 2>/dev/null
|
rm /tmp/old_default_crashkernel 2>/dev/null
|
||||||
%ifarch ppc64 ppc64le
|
%ifarch ppc64 ppc64le
|
||||||
rm /tmp/old_default_crashkernel_fadump 2>/dev/null
|
rm /tmp/old_default_crashkernel_fadump 2>/dev/null
|
||||||
|
Loading…
Reference in New Issue
Block a user