stand/lua: Don't descend into an empty kernels submenu

This submenu is likely going to go away in favor of kernel selection as it
is done in forth at the moment, but for the time being don't descend into it
if we have no kernels available for listing.
This commit is contained in:
Kyle Evans 2018-02-16 03:14:23 +00:00
parent fe672a15db
commit 6a5a7e8a53
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=329350

View File

@ -218,6 +218,9 @@ menu.welcome = {
-- dynamically build the kernel menu:
local kernels = core.kernelList();
if #kernels == 0 then
return nil;
end
for k, v in ipairs(kernels) do
menu.kernel_options[#menu.kernel_options + 1] = {
entry_type = "entry",