December 2019 Archives

再谈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 Archive

This page is an archive of entries from December 2019 listed from newest to oldest.

November 2019 is the previous archive.

January 2020 is the next archive.

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