18

Today I ran a routine "apt upgrade", and it upgraded several GRUB-related packages. I am using GRUB 2.02 on Ubuntu 18.04 LTS.

After this, the GRUB menu appears on every boot with a 30 second timeout.

Previously, the GRUB menu was hidden.

Any ideas as to what might cause this? My /etc/default/grub is below.

# 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=""

3 Answers3

22

This thread grub-recordfail-broken-regarding-lvm tries to get to the bottom of the problem.

If you are looking for a quick fix, you can

sudo sh -c 'echo GRUB_RECORDFAIL_TIMEOUT=5 >> /etc/default/grub';
sudo update-grub;
  • thank @borislav for pointing out sudo grub-install; is not needed for configuring Grub menu timeout
Terence Ho
  • 236
  • 1
  • 3
11

It worked for me to add

GRUB_RECORDFAIL_TIMEOUT=0

in /etc/default/grub

and then run

sudo update-grub
Kikkomann
  • 295
5

I had the same issue. This fixed it for me:

In a terminal window run:

sudo sed -i "/recordfail_broken=/{s/1/0/}" /etc/grub.d/00_header

then

sudo update-grub

courtesy of: https://forums.linuxmint.com/viewtopic.php?t=287026