Specifying Modules To Be Loaded at Boot Time

The system loads most modules automatically at boot time. You can also add modules to be loaded by creating a configuration file for the module in the /etc/modules-load.d directory. The file name must have the extension .conf.

Changes to the /etc/modules-load.d directory persist across reboots.

  1. To force a module to load at boot time, create a configuration file in /etc/modules-load.d for the module.
    For example to force the bnxt_en.conf to load at boot time, run the following command:
    echo bnxt_en | sudo tee /etc/modules-load.d/bnxt_en.conf
  2. Verify that the file exists and contains the module name.
    cat /etc/modules-load.d/bnxt_en.conf

    If the module isn't already loaded, you can load it manually by using the modprobe command, or you can reboot the system and it loads automatically using the configuration that you have provided.