-
Notifications
You must be signed in to change notification settings - Fork 12
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 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. Suggested-by: Dave Young <[email protected]> Suggested-by: Colin Walters <[email protected]> Signed-off-by: Lichen Liu <[email protected]>
- Loading branch information
Showing
3 changed files
with
14 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
dracutmodules='' | ||
add_dracutmodules+='kdumpbase' | ||
omit_dracutmodules+='rdma plymouth resume ifcfg earlykdump' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters