In RHEL, kernel supports a `crashkernel=auto` param and when it's used,
kernel will use its built-in default value as the crashkernel value.
But upstream doesn't like this idea. [1]
`crashkernel=auto` was introduced to provide user a default value, and
make it possible to update the crashkernel value automatically as kernel
package updates if user is using the default `auto` value.
After more discussion, `crashkernel=auto` will be dropped. To track
the default crashkernel value, kernel package can include a
crashkernel.conf file with it, and kexec-tools can make use of that
file, update kernel's boot cmdline accordingly, and help user to
reset the crashkernel value to default value.
[1]:
https://lore.kernel.org/linux-mm/20210507010432.IN24PudKT%25akpm@linux-fo...
Kairui Song (2):
kdumpctl: Add kdumpctl reset-crashkernel
Add a new hook: 92-crashkernel.install
92-crashkernel.install | 131 +++++++++++++++++++++++++++++++++++++++++
kdumpctl | 32 +++++++++-
kdumpctl.8 | 9 +++
kexec-tools.spec | 4 ++
4 files changed, 174 insertions(+), 2 deletions(-)
create mode 100755 92-crashkernel.install
--
2.31.1