lualoader: Add chainload menu entry
MFC after: 4 days
This commit is contained in:
parent
18655ca290
commit
bdf12807be
@ -337,6 +337,22 @@ menu.welcome = {
|
||||
submenu = menu.boot_environments,
|
||||
alias = {"e", "E"},
|
||||
},
|
||||
-- chainload
|
||||
{
|
||||
entry_type = core.MENU_ENTRY,
|
||||
name = function()
|
||||
return 'Chain' .. color.highlight("L") ..
|
||||
"oad " .. loader.getenv('chain_disk')
|
||||
end,
|
||||
func = function()
|
||||
loader.perform("chain " ..
|
||||
loader.getenv('chain_disk'))
|
||||
end,
|
||||
visible = function()
|
||||
return loader.getenv('chain_disk') ~= nil
|
||||
end,
|
||||
alias = {"l", "L"},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user