What’s the difference of `/etc/modules-load.d` and `/etc/modules`

etckernel-modulesstartup

I red the introduction of them and found that, they both deal with module loading during boot time.

So, what's the difference of these two different configuation ways?

Best Answer

Distributions which use SysV init scripts where systemd is not available used to load modules on init listed in /etc/modules or /etc/modules.conf (from the kmod job).
In distributions where systemd is available systemd-modules-load.service reads files from:

  • /etc/modules-load.d/*.conf
  • /run/modules-load.d/*.conf
  • /usr/lib/modules-load.d/*.conf

to load kernel modules during boot in a static list.

Related Question