再谈grub2菜单隐藏的问题

升级了linux内核之后,发现grub菜单又被覆盖了,于是打开/etc/default/grub文件:
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="resume=UUID=94418005-fdde-4c50-8fc9-06aace00e102 rhgb quiet"
GRUB_DISABLE_RECOVERY="true"
GRUB_ENABLE_BLSCFG=true
注释掉GRUB_HIDDEN_TIMEOUT和,并将GRUB_HIDDEN_TIMEOUT_QUIET选项设置为false即可。
再次更新,可以使用命令:
grub2-editenv - unset menu_auto_hide
默认第一个选项:
grub2-set-default 0
grub2-reboot 0
另外,可以手工通过长按shift键获取到grub2的菜单

Monthly Archives

Pages

Powered by Movable Type 7.7.2

About this Entry

This page contains a single entry by Cnangel published on December 9, 2019 12:57 PM.

关于rpm打包debuginfo和debugsource生成的问题 was the previous entry in this blog.

新年快乐,2020年开始了新的一天 is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.