c475e61f | 21-Dec-2023 |
Stéphane Rochoy <stephane.rochoy@stormshield.eu> |
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
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
Reviewed by: imp, kevans Pull Request: https://github.com/freebsd/freebsd-src/pull/759
show more ...
|
c343eedc | 04-May-2023 |
Stéphane Rochoy <stephane.rochoy@stormshield.eu> |
stand/lua: per-product conf if requested via product_vars
If product_vars is set, it must be a space separated list of environment variable names to walk through to guess the product. Each time a pr
stand/lua: per-product conf if requested via product_vars
If product_vars is set, it must be a space separated list of environment variable names to walk through to guess the product. Each time a product can be guessed (i.e., the corresponding variable is defined), prepend /boot/loader.conf.d/PRODUCT/ to loader_conf_dirs.
It can be typically used as follow:
smbios.system.planar.maker="PLANAR_MAKER" smbios.system.planar.product="PLANAR_PRODUCT" smbios.system.product="PRODUCT" uboot.m_product="M_PRODUCT" product_vars="smbios.system.planar.maker smbios.system.planar.product smbios.system.product uboot.m_product"
to read files found in the following directories, in that order:
/boot/loader.conf.d/PLANAR_MAKER /boot/loader.conf.d/PLANAR_PRODUCT /boot/loader.conf.d/PRODUCT /boot/loader.conf.d/M_PRODUCT
Reviewed by: imp, kevans Pull Request: https://github.com/freebsd/freebsd-src/pull/759
show more ...
|
5fdf01db | 02-Feb-2024 |
Warner Losh <imp@FreeBSD.org> |
Revert "stand/lua: always allow overriding with local config files"
This reverts commit d3d0b735571d9562812ce5b343a6e91f7a795dbe. no mail sent out, and the commit message was wrong.
Sponsored by:
Revert "stand/lua: always allow overriding with local config files"
This reverts commit d3d0b735571d9562812ce5b343a6e91f7a795dbe. no mail sent out, and the commit message was wrong.
Sponsored by: Netflix
show more ...
|
d3d0b735 | 21-Dec-2023 |
Stéphane Rochoy <stephane.rochoy@stormshield.eu> |
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
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
show more ...
|