<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/stand/lua/hook.lua, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>http://cgit.freebsd.org/src/atom?h=main</id>
<link rel='self' href='http://cgit.freebsd.org/src/atom?h=main'/>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<updated>2023-08-16T17:55:30Z</updated>
<entry>
<title>Remove $FreeBSD$: two-line lua tag</title>
<updated>2023-08-16T17:55:30Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-16T17:55:30Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=9636a14538f56ad9b59c9d77abd9a06d0510d7b9'/>
<id>urn:sha1:9636a14538f56ad9b59c9d77abd9a06d0510d7b9</id>
<content type='text'>
Remove /^--\n--\s*\$FreeBSD\$.*$\n/
</content>
</entry>
<entry>
<title>spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD</title>
<updated>2023-05-12T16:44:03Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-05-10T15:40:58Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=4d846d260e2b9a3d4d0a701462568268cbfe7a5b'/>
<id>urn:sha1:4d846d260e2b9a3d4d0a701462568268cbfe7a5b</id>
<content type='text'>
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch
up to that fact and revert to their recommended match of BSD-2-Clause.

Discussed with:		pfg
MFC After:		3 days
Sponsored by:		Netflix
</content>
</entry>
<entry>
<title>lualoader: add support for .lua configuration files</title>
<updated>2023-05-11T04:10:53Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2023-05-11T04:10:53Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=3cb2f5f369ecfd6d15aeff2b47e21866551a20de'/>
<id>urn:sha1:3cb2f5f369ecfd6d15aeff2b47e21866551a20de</id>
<content type='text'>
If a file is specified in loader_conf_files that ends in '.lua', lualoader
will now load and execute that file. These may be used in place of a
traditional loader.conf to use more complicated logic, where some values
may be set based on others or based on the environment that the C bits has
left us with.

Lua scripts are run in a limited environment. In particular, it does not get
access to any modules or, in-fact, anything except environment variable.

A config.buildenv hook has been added so that a local module can add
whatever it may need to to the environment.

When a global var is set in the lua script, it does not immediately alter
the loader environment. Instead, the script's environment is initially
empty and processed only if the whole script executes successfully.
Effectively, a lua configuration file either takes effect or it does not,
an error will not leave it in a half-baked state.

Reviewed by:	bcr (manpages), imp
Differential Revision:	https://reviews.freebsd.org/D28450
</content>
</entry>
<entry>
<title>Remove "All Rights Reserved" on files that I hold sole copyright on</title>
<updated>2018-05-09T16:44:19Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2018-05-09T16:44:19Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=4b3c64f7227d603d085bfb494d63e4b4e8804900'/>
<id>urn:sha1:4b3c64f7227d603d085bfb494d63e4b4e8804900</id>
<content type='text'>
See r333391 for more detail; in summary: it holds no weight and may be
removed.
</content>
</entry>
<entry>
<title>lualoader: Add primitive hook module, use it to untangle bogus reference</title>
<updated>2018-03-21T03:07:16Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2018-03-21T03:07:16Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=aea262bfc480c11865a027e911f8a8d3165a48fc'/>
<id>urn:sha1:aea262bfc480c11865a027e911f8a8d3165a48fc</id>
<content type='text'>
See: comments in the hook module about intended usage, as well as the
introduced use for config.reloaded.

Use the newly introduced hook module to define a "config.reloaded" hook.
This is currently used to register core's clearKernelCache as a reload hook
to avoid a circular dependency and fix this functionality- it didn't
actually work out, and it isn't immediately obvious how it slipped into src.

Other hook types will be introduced into the core lualoader as useful hook
points are identified.
</content>
</entry>
</feed>
