From 5a79ea480e97a41a7ba189351be1e132b2b2065c Mon Sep 17 00:00:00 2001 From: Kyle Evans Date: Wed, 21 Mar 2018 03:16:14 +0000 Subject: [PATCH] core.lua(8): Update to reflect recently added function clearCachedKernels --- stand/lua/core.lua.8 | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/stand/lua/core.lua.8 b/stand/lua/core.lua.8 index c5ec1251627..70378828d85 100644 --- a/stand/lua/core.lua.8 +++ b/stand/lua/core.lua.8 @@ -27,7 +27,7 @@ .\" .\" $FreeBSD$ .\" -.Dd March 2, 2018 +.Dd March 21, 2018 .Dt CORE.LUA 8 .Os .Sh NAME @@ -138,6 +138,16 @@ and If .Fa safeMode is omitted, toggle the current safe mode setting. +.It Fn core.clearCachedKernels +Clears out the cache of kernels to be displayed on the boot menu. +This function is registered as a +.Ev config.reloaded +hook. +It is used to invalidate the kernel list whenever it may have changed, either +due to a boot environment change or a potential change in either +.Ic kernel +or +.Ic kernels . .It Fn core.kernelList Returns a table of kernels to display on the boot menu. This will combine