boot/loader: Handle the /boot/modules.local
authorzrj <rimvydas.jasinskas@gmail.com>
Tue, 26 Apr 2016 14:28:27 +0000 (17:28 +0300)
committerzrj <zrj@dragonflybsd.org>
Thu, 28 Apr 2016 14:33:27 +0000 (17:33 +0300)
commit5579030b385b148cae64bd73cf60b6afe7e81959
treeb786823002052f37f280cbbb4586df43cbd72eb4
parentfed9a38f181dfc6232e1559d3fb7256419e90896
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.
sys/boot/common/load_elf.c
sys/boot/common/loader.8
sys/boot/common/module.c
sys/boot/dloader/cmds.c
sys/boot/dloader/loader-bootp.conf
sys/boot/dloader/loader.conf