HomeFreeBSD

stand/lua: always allow overriding with local config files

Description

stand/lua: always allow overriding with local config files

Loader now also read configuration files listed in local_loader_conf_files.
Files listed here are the last ones read. And /boot/loader.conf.local was
moved from loader_conf_files to local_loader_conf_files leaving only
loader.conf and device.hints in loader_conf_files by default.

The idea is to ensure local_loader_conf_files, i.e., /boot/loader.conf.local,
can always be used to override other user defined settings.

So the sequencing is now as follow:

  1. Bootstrap: /boot/defaults/loader.conf
  2. Read loader_conf_files files: /boot/device.hints /boot/loader.conf
  3. Read loader_conf_dirs files: /boot/loader.conf.d/*.conf
  4. And finally, rread local_loader_conf_files files: /boot/loader.conf.local

Details

Provenance
stephane.rochoy_stormshield.euAuthored on Dec 21 2023, 2:05 PM
impCommitted on Feb 2 2024, 6:58 PM
Parents
rG754cac4b283e: stand/lua: per-product conf if requested via product_vars
Branches
Unknown
Tags
Unknown
Reverted By
rG5fdf01dbeef1: Revert "stand/lua: always allow overriding with local config files"