315f200ee7
Resolves: RHEL-49590 Upstream: https://github.com/rhkdump/kdump-utils Conflict: Yes, kexec-tools is split into 3 parts upstream, some changes should be applied to kdump-utils Makefile, but RHEL-9 kexec-tools doesn't have that. Also missing upstream commits: - 1732a3b(mkdumprd: Omit rdma module) - 7fec2f56(mkdumprd: simplify handling of dracut arguments) commit dacb34341113fa925c15e28a7ce56a80dd370e2f Author: Lichen Liu <lichliu@redhat.com> Date: Tue Nov 5 12:07:42 2024 +0800 Add kdump dracut config In some cases, customizing the first kernel's initrd is necessary by modifying the dracut `omit_dracutmodules` options, such as in Bootc or CoreOS scenarios [1]. However, these changes can unintentionally break existing functionality in kdump. For instance, setting `omit_dracutmodules='nfs'` prevents the `nfs` module from being added. Additionally, some dracut configurations [2] use `dracutmodules+='some modules'` instead of `add_dracutmodules+='some modules'`. When `dracutmodules` is non-empty, dracut includes only the specified modules, which can result in an initrd that lacks necessary modules, causing kdump to fail. Dracut upstream support --add-confdir now, kdump can use this option when building kdump initramfs. This patch moved the hardcoded dracutmodules from mkdumprd to the new conf file /lib/kdump/dracut.conf.d/99-kdump.conf, it is easier to check and modify to omit or add certain modules. This patch also initialize dracutmodules to empty to avoid the influence of other configurations. See also: [1] https://github.com/rhkdump/kdump-utils/issues/11 [2] https://issues.redhat.com/browse/RHEL-49590?focusedId=25197134&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-25197134 Suggested-by: Dave Young <dyoung@redhat.com> Suggested-by: Colin Walters <walters@verbum.org> Signed-off-by: Lichen Liu <lichliu@redhat.com> Signed-off-by: Lichen Liu <lichliu@redhat.com>
4 lines
105 B
Plaintext
4 lines
105 B
Plaintext
dracutmodules=''
|
|
add_dracutmodules=' kdumpbase '
|
|
omit_dracutmodules=' plymouth resume ifcfg earlykdump '
|