diff --git a/stand/lua/menu.lua b/stand/lua/menu.lua --- a/stand/lua/menu.lua +++ b/stand/lua/menu.lua @@ -245,6 +245,7 @@ boot_entry_1, boot_entry_2 = multi_user, single_user end return { + menu_entries.old_loader, boot_entry_1, boot_entry_2, menu_entries.prompt, @@ -411,6 +412,16 @@ end, alias = {"l", "L"}, }, + old_loader = { + entry_type = core.MENU_SEPARATOR, + name = function() + return color.highlight("loader is too old, upgrade") + end, + visible = function() + -- If we have to use compat shims + return not pager or loader.lua_path == nil or not loader.command_error + end + } vendor = { entry_type = core.MENU_ENTRY, visible = function()