Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In some cases, we need to change dracut [omit_]dracutmodules to customize the first kernel's initrd to meet the needs, such as bootc and CoreOS[1]. In most cases kdump does not use these modules, but the change of [omit]_dracutmodules may break existing functionality. For example, if we set omit_dracutmodules='nfs', the nfs module cannot be added even if we use "dracut_args --force-add 'nfs'". Some dracut conf[2] may use "dracutmodules+='some modules'" instead of "add_dracutmodules+='some modules'". When dracutmodules is not empty, dracut will only include the specified dracut modules, this causes the initrd doesn't include the necessary modules and kdump will not work. It is better to maintain its own dracut config for kdump. This patch moved the hardcoded dracut args to the new conf dir /lib/kdump/dracut.conf.d/99-kdump.conf. Dracut will support --add-confdir start by 104, kdump can use this option when building kdump initramfs. See also: [1] #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 <[email protected]> Suggested-by: Colin Walters <[email protected]> Signed-off-by: Lichen Liu <[email protected]>
- Loading branch information