解决grub2菜单自动隐藏

安装了fedora31之后,发现grub2引导菜单变成了自动隐藏,这样无法切换操作系统了,于是想办法解决,发现grub2的环境配置文件(/boot/efi/EFI/fedora/grubenv):
# GRUB Environment Block
saved_entry=0f9c7531424f4eaa8e6a0539697a2593-5.3.7-301.fc31.x86_64
menu_auto_hide=1
boot_success=1
kernelopts=root=UUID=d234abd9-fa35-4827-affd-257592feb5fb ro resume=UUID=94418005-fdde-4c50-8fc9-06aace00e102 rhgb quiet
boot_indeterminate=0
发现menu_auto_hide为1,表示自动隐藏,于是修改成:
menu_auto_hide=0
并重新在/boot/grub2生成grub.cfg
grub2-mkconfig -o /boot/grub2/grub.cfg
一般不覆盖掉/boot/efi/EFI/fedora/grub.cfg,这样如果修改有问题,还可以有恢复的机会 :)

Monthly Archives

Pages

Powered by Movable Type 7.3.1

About this Entry

This page contains a single entry by Cnangel published on November 3, 2019 11:09 PM.

fedora31发布了 was the previous entry in this blog.

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

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