Date: Fri, 16 Feb 2018 03:14:24 +0000 (UTC) From: Kyle Evans <kevans@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r329350 - head/stand/lua Message-ID: <201802160314.w1G3EOmI085848@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kevans Date: Fri Feb 16 03:14:23 2018 New Revision: 329350 URL: https://svnweb.freebsd.org/changeset/base/329350 Log: 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. Modified: head/stand/lua/menu.lua Modified: head/stand/lua/menu.lua ============================================================================== --- head/stand/lua/menu.lua Fri Feb 16 03:12:24 2018 (r329349) +++ head/stand/lua/menu.lua Fri Feb 16 03:14:23 2018 (r329350) @@ -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",
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802160314.w1G3EOmI085848>