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

dracut command line options don't override .conf files

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Minor Minor
    • rhel-9.5
    • rhel-9.4
    • dracut
    • None
    • dracut-057-70.git20240819.el9
    • None
    • None
    • rhel-plumbers
    • ssg_core_services
    • 26
    • 26
    • 5
    • Hide

      Tested on RHEL-10; RHEL-9 should behave identically in this case.

      Show
      Tested on RHEL-10; RHEL-9 should behave identically in this case.
    • Dev ack
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • 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
              Frantisek Sumsal Frantisek Sumsal
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: