升级后 Grub 超时设置为 30

Jam*_*eff 17 upgrade boot grub2

今天跑了个例行的“apt upgrade”,升级了几个GRUB相关的包。我在 Ubuntu 18.04 LTS 上使用 GRUB 2.02。

此后,每次启动时都会出现 GRUB 菜单,超时 30 秒。

以前,GRUB 菜单是隐藏的。

关于可能导致这种情况的任何想法?我的 /etc/default/grub 在下面。

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="--verbose nosplash debug"
GRUB_CMDLINE_LINUX=""
Run Code Online (Sandbox Code Playgroud)

Ter*_* Ho 16

这个线程grub-recordfail-broken-regarding-lvm试图找出问题的根源

如果您正在寻找快速修复,您可以

sudo sh -c 'echo GRUB_RECORDFAIL_TIMEOUT=5 >> /etc/default/grub';
sudo update-grub;
Run Code Online (Sandbox Code Playgroud)
  • 感谢@borislav 指出sudo grub-install;配置 Grub 菜单超时不需要


Kik*_*ann 7

添加对我有用

GRUB_RECORDFAIL_TIMEOUT=0
Run Code Online (Sandbox Code Playgroud)

在 /etc/default/grub

然后运行

sudo update-grub
Run Code Online (Sandbox Code Playgroud)


小智 5

我遇到过同样的问题。这为我修复了它:

在终端窗口中运行:

sudo sed -i "/recordfail_broken=/{s/1/0/}" /etc/grub.d/00_header
Run Code Online (Sandbox Code Playgroud)

然后

sudo update-grub
Run Code Online (Sandbox Code Playgroud)

礼貌:https : //forums.linuxmint.com/viewtopic.php?t=287026