git: boot/loader: Handle the /boot/modules.local

Rimvydas Jasinskas zrj at crater.dragonflybsd.org
Thu Apr 28 07:21:50 PDT 2016


commit 5579030b385b148cae64bd73cf60b6afe7e81959
Author: zrj <rimvydas.jasinskas at gmail.com>
Date:   Tue Apr 26 17:28:27 2016 +0300

    boot/loader: Handle the /boot/modules.local
    
    Weather /boot/modules.local is used during boot or by kldload(8)
    is controlled by a new "local_modules" loader variable.
    
    If local_modules is set to "YES", /boot/modules.local is also
    appended to kern.module_path sysctl variable for use by kldload(8).
    Setting variable to any other value disables that.
    
    By default allow modules to searched in /boot/modules.local directory
    since it does not shadow the default kernel modules and has lower
    directory search priority.

Summary of changes:
 sys/boot/common/load_elf.c         |  7 +++++++
 sys/boot/common/loader.8           | 11 ++++++++++-
 sys/boot/common/module.c           | 28 +++++++++++++++++++++++++++-
 sys/boot/dloader/cmds.c            |  1 +
 sys/boot/dloader/loader-bootp.conf |  3 ++-
 sys/boot/dloader/loader.conf       |  3 ++-
 6 files changed, 49 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5579030b385b148cae64bd73cf60b6afe7e81959


-- 
DragonFly BSD source repository


More information about the Commits mailing list