loader.conf.d

From loader.conf(5):
Code:
     loader_conf_dirs
                   Space separated list of directories to process for
                   configuration files.  The lua-based loader will process
                   files with a “.conf” suffix that are placed in these
                   directories.

           loader_conf_dirs
                     (“/boot/loader.conf.d”)

The latter is the default setting. And yes, I would expect it to be documented in the FILES section.
 
I taking a guess here but sounds like a "separation" directory. Maybe loader looks at /boot/loader.conf and then also pulls in any configuration from /boot/loader.conf.d similar to /etc/rc.conf.d. That lets an upgrade not worry about localizations.

I see I typed too slow, so "what yuripv79 says"
 
OK thanks. I am still a little hazy on why you would need multiple boot.conf type files?

I use a .d directory with my dnsmasq blacklist. So I get the gist of the layout.

My question is more, what would I need that for? When would you need multiple boot configuration files?
 
So thinking about this I could break apart loader stuff on complex machine settings.

A separate file with your fdt_overlays on Arm boards.

A file with all your bhyve PCI passthu PPT devices.

Those are two loader settings that get large for me. I could see breaking them into a file instead.

Do I have the correct context for this directory? Example of your usage?
 
Back
Top