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. 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 may override dracutmodules variable, this also may break the building of kdump img. We need to keep it empty. It is better to maintain its own dracut config for kdump. This patch moved the hardcoded dracut modules and omit modules 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. If --add-confdir is not available in your system, kdump will use --confdir, in this case, the default confdir "/etc/dracut.conf.d" will not work while generating kdump initrd. Suggested-by: Dave Young <[email protected]> Suggested-by: Colin Walters <[email protected]> Signed-off-by: Lichen Liu <[email protected]>
- Loading branch information