[Bug 244640] [Patch][Lua loader] Implement missing "read-conf" 4th command

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Apr 30 21:04:53 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244640

--- Comment #11 from commit-hook at freebsd.org ---
A commit references this bug:

Author: kevans
Date: Thu Apr 30 21:04:40 UTC 2020
New revision: 360506
URL: https://svnweb.freebsd.org/changeset/base/360506

Log:
  lualoader: config: improve readConfFiles, rename to readConf

  The previous interface was pretty bad, and required the caller to get some
  implementation details correct that it really shouldn't need to (e.g.
  loader_conf_files handling) and pass in an empty table for it to use.

  The new and much improved interface, readConf, is much less of a hack;
  hiding these implementation details and just doing the right thing.
  config.lua will now use it to process /boot/defaults/loader.conf and the
  subsequent loader_conf_files from there, and read-conf will also use it.

  This improvement submitted by Olivier (cited below), loader_conf_files
  handling from the original patch was changed to just clobber it before
  processing and not bother restoring it after the fact following r360505
  where it's now guaranteed to evade the loader environment.

  PR:           244640
  Submitted by: Olivier Certner (olivier freebsd free fr>

Changes:
  head/stand/lua/cli.lua
  head/stand/lua/config.lua
  head/stand/lua/config.lua.8

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-bugs mailing list