_crashkernel_add currently always assumes the good case, i.e. that the value of the crashkernel parameter has the correct syntax and that the delta added is a number. Both doesn't have to be true when the values are provided by users. Thus add some additional checks. Furthermore require the delta to have a explicit unit, i.e. no longer assume that is in megabytes, i.e. 100 -> 100M. Signed-off-by: Philipp Rudo <prudo@redhat.com> Reviewed-by: Pingfan Liu <piliu@redhat.com> |
||
|---|---|---|
| .. | ||
| support | ||
| kdump-lib_spec.sh | ||
| kdump-lib-initramfs_spec.sh | ||
| kdumpctl_general_spec.sh | ||
| kdumpctl_manage_crashkernel_spec.sh | ||
| kdumpctl_reset_crashkernel_spec.sh | ||