[OS-BUILD PATCH 0/0] [redhat] Generate a crashkernel.conf for each kernel build

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Kairui Song on gitlab.com
Merge Request: https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1171
NOTE: Truncated patchset due to missing public @redhat.com email
      address on your GitLab profile at https://gitlab.com/-/profile.
      Once that is fixed, close and reopen the merge request to
      retrigger sending the emails.

It has been a long-term demand for having a default crashkernel
value for each kernel build. This helps to manage kernel's
crashkernel usage by kernel version and provide users a reference
default value.

RHEL kernels support a `crashkernel=auto` cmdline param. And kernel
have a built-in default value used when `auto` is specified.
Many attempts are made to push this upstream. Recent attempt to
push this upstream raised a lot of discussions [1].

Upstream is not accepting this `crashkernel=auto` design. So after
more discussions, instead of adding a default value in kernel, just
add a config that packaged with kernel is more doable. Other packages,
like kexec-tools[2], can use this as a reference and update kernel
cmdline param.

[1]: https://lore.kernel.org/linux-mm/20210507010432.IN24PudKT%25akpm@linux-
foundation.org/
[2]: https://lists.fedoraproject.org/archives/list/kexec@lists.fedoraproject.o
rg/thread/MKUSELX3GKKXPFNLEGJMWXSS2LADRPMQ/

Signed-off-by: Kairui Song <kasong@xxxxxxxxxx>

---
 Documentation/admin-guide/kdump/kdump.rst |  11 -----------
 kernel/crash_core.c                       |  28 ++--------------------------
 redhat/Makefile                           |   1 +
 redhat/generate_crashkernel_conf.sh       |  25 +++++++++++++++++++++++++
 redhat/kernel.spec.template               |   5 +++++
 5 files changed, 33 insertions(+), 37 deletions(-)
_______________________________________________
kernel mailing list -- kernel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to kernel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/kernel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Index of Archives]     [Fedora General Discussion]     [Older Fedora Users Archive]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [USB]     [Asterisk PBX]

  Powered by Linux