kexec-tools/spec
Philipp Rudo f5785c60aa kdumpctl: simplify _update_kernel_cmdline
_update_kernel_cmdline handles two cmdline parameters at once. This does not
only make the function itself but also its callers more complicated than
necessary. For example in _update_crashkernel the fadump gets "updated" to
the value that has been read from grubby. Thus simplify
_update_kernel_cmdline to only update one parameter at once.

While at it shorten some variable named in the callers.

Signed-off-by: Philipp Rudo <prudo@redhat.com>
Reviewed-by: Pingfan Liu <piliu@redhat.com>
2023-09-14 15:01:52 +08:00
..
support unit tests: add tests for "kdumpctl reset-crashkernel" 2022-04-14 11:45:08 +08:00
kdump-lib_spec.sh kdump-lib: Introduce a help function _crashkernel_add() 2023-06-14 17:33:16 +08:00
kdump-lib-initramfs_spec.sh unit tests: add tests for kdump_get_conf_val in kdump-lib-initramfs.sh 2022-04-14 11:45:18 +08:00
kdumpctl_general_spec.sh kdumpctl: Fix the matching of plus symbol by grep's EREs 2023-06-14 17:33:16 +08:00
kdumpctl_manage_crashkernel_spec.sh kdumpctl: simplify _update_kernel_cmdline 2023-09-14 15:01:52 +08:00
kdumpctl_reset_crashkernel_spec.sh kdumpctl: simplify _update_kernel_cmdline 2023-09-14 15:01:52 +08:00