Skip to content

main/openrc: fix priority of modules-load configuration.

Leo requested to merge Leo/aports:openrc-modules-load into master

The previous configuration loaded in this order:

  1. /etc/modules
  2. /etc/modules-load.d/*.conf
  3. /run/modules-load.d/*.conf
  4. /usr/lib/modules-load.d/*.conf
  5. /lib/modules-load.d/*.conf

This is completely backwards and with this commit it will now be.

  1. /lib/modules-load.d/*.conf -> System and base packages configuration
  2. /usr/lib/modules-load.d/*.conf -> Other packages configuration
  3. /etc/modules -> Local admin configuration
  4. /etc/modules-load.d/*.conf -> Local admin configuration (preferred)
  5. /run/modules-load.d/*.conf -> Runtime configuration

Merge request reports