Issue
What were you trying to do that didn't work?
Quoting "man dracut.conf",
dracut.conf is loaded during the initialisation phase of dracut. Command line parameter will override any values set here.
I want to use "dracut --add nfs" to overwrite 'omit_dracutmodules+=" nfs "' in .conf file.
Please provide the package NVR for which bug is seen:
dracut-057-53.git20240104.el9.x86_64
How reproducible:
always
Steps to reproduce
Create a .conf file to omit the nfs module by
echo 'omit_dracutmodules+=" nfs "' > /etc/dracut.conf.d/60-omit-nfs.conf
Use "dracut --add nfs --force" or "dracut --add nfs --omit '' --force" to include the nfs module
Check if the nfs module is included by " lsinitrd --mod|grep nfs"
Expected results
"lsinitrd --mod|grep nfs" should output nfs i.e. the nfs module should be included.
Actual results
"lsinitrd --mod|grep nfs" has empty output i.e. the nfs module isn't included into the built intird.
Additional info
This issue can be reproduced with dracut-059-22.fc40.x86_64 as well
This bug prevents kdump nfs dumping from working on CoreOS which ships /usr/lib/dracut/dracut.conf.d/coreos-omits.conf with the content "omit_dracutmodules+=' nfs lvm dmraid '"