再谈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的菜单

Archives

Pages

Powered by Movable Type 7.1.5

January 2020

Sun Mon Tue Wed Thu Fri Sat
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  

Recent Assets

  • oppo 350.jpg
  • oppo 357.jpg
  • oppo 353.jpg
  • oppo 345.jpg
  • oppo 343.jpg
  • oppo 342.jpg
  • oppo 340.jpg
  • QQ图片20181209001102.png
  • oppo 336.jpg
  • oppo 334.jpg
Creative Commons License
This blog is licensed under a Creative Commons License.

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.