freebsd-dev/usr.sbin/config
Kyle Evans 51c854f028 config(8): De-dupe hint/env vars within a single file
r335653 flipped the order in which hints/env files are concatenated to match
the order in which vars are processed by the kernel. This is the other
hammer to drop.

Use nv(9) to de-dupe entries within a single `hint` or `env` file, using the
latest value specified for a key. This leaves some duplicates if a variable
is specified in multiple hint/env files or via `envvar` in a kernel config,
but the reversed order of concatenation (from r335653) makes this a
non-issue as the latest-specified version will be seen first.

This change also silently rewrote hint bits to use the same sanitization
process that ian@ wrote for r335642. To the kernel, hints and env vars are
basically the same thing through early boot, then get merged into the
dynamic environment once kmem becomes available and the dynamic environment
is created. They should be subjected to the same restrictions.

MFC after:	1 month
2018-07-05 17:53:51 +00:00
..
config.5 kern_environment: use any provided environments, evict hintmode/envmode 2018-07-05 16:30:32 +00:00
config.8 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
config.h kern_environment: use any provided environments, evict hintmode/envmode 2018-07-05 16:30:32 +00:00
config.y kern_environment: use any provided environments, evict hintmode/envmode 2018-07-05 16:30:32 +00:00
configvers.h Fix 'local' to not look in the source tree for the file. 2017-11-17 18:34:14 +00:00
kernconf.tmpl
lang.l config(8): Add envvar support 2018-06-25 17:17:47 +00:00
main.c config(8): Add envvar support 2018-06-25 17:17:47 +00:00
Makefile config(8): De-dupe hint/env vars within a single file 2018-07-05 17:53:51 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
mkheaders.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
mkmakefile.c config(8): De-dupe hint/env vars within a single file 2018-07-05 17:53:51 +00:00
mkoptions.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00