Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-26114

dracut command line options don't override .conf files

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • rhel-9.4
    • dracut
    • None
    • sst_cs_plumbers
    • ssg_core_services
    • 5
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • None
    • None
    • None

      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

      1. Create a .conf file to omit the nfs module by 
        echo 'omit_dracutmodules+=" nfs "' > /etc/dracut.conf.d/60-omit-nfs.conf
      1. Use "dracut --add nfs --force" or "dracut --add nfs --omit '' --force"  to include the nfs module
      2. 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

      1. This issue can be reproduced with dracut-059-22.fc40.x86_64 as well
      2. 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 '" 

            pvalena@redhat.com Pavel Valena
            coxu@redhat.com Coiby Xu
            dracut maint mailing list dracut maint mailing list
            qe-baseos-daemons qe-baseos-daemons
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: