Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107082439
D48354.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D48354.diff
View Options
diff --git a/stand/lua/menu.lua b/stand/lua/menu.lua
--- a/stand/lua/menu.lua
+++ b/stand/lua/menu.lua
@@ -255,9 +255,16 @@
},
{
entry_type = core.MENU_SEPARATOR,
- name = "Options:",
+ name = "Kernel:",
},
menu_entries.kernel_options,
+ {
+ entry_type = core.MENU_SEPARATOR,
+ },
+ {
+ entry_type = core.MENU_SEPARATOR,
+ name = "Options:",
+ },
menu_entries.boot_options,
menu_entries.zpool_checkpoints,
menu_entries.boot_envs,
@@ -332,22 +339,19 @@
items = core.kernelList,
name = function(idx, choice, all_choices)
if #all_choices == 0 then
- return "Kernel: "
+ return ""
end
- local is_default = (idx == 1)
- local kernel_name = ""
+ local kernel_name
local name_color
- if is_default then
+ if idx == 1 then
name_color = color.escapefg(color.GREEN)
- kernel_name = "default/"
else
name_color = color.escapefg(color.CYAN)
end
- kernel_name = kernel_name .. name_color ..
- choice .. color.resetfg()
- return color.highlight("K") .. "ernel: " ..
- kernel_name .. " (" .. idx .. " of " ..
+ kernel_name = name_color .. choice ..
+ color.resetfg()
+ return kernel_name .. " (" .. idx .. " of " ..
#all_choices .. ")"
end,
func = function(_, choice, _)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 10, 8:24 PM (11 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15722083
Default Alt Text
D48354.diff (1 KB)
Attached To
Mode
D48354: loader: Rework kernel menu section
Attached
Detach File
Event Timeline
Log In to Comment