6

First of all: YES, I did the update-grub after changing the value.

After a new install of Ubuntu 18.10 on an empty disk the wait time at the grub menu is of 30 seconds (half an eternity!).

The line GRUB_TIMEOUT in /etc/default/grub had a value of 0. Changing this to 10 did not change the wait time, it was still 30 seconds.

Any ideas?

  • Do you have root on LVM or btrfs? – Pilot6 Mar 5 at 19:51
  • @Pilot6 I have LVM, the file systems are ext4. – muclux Mar 5 at 19:52
  • This is by design, I will post an answer. – Pilot6 Mar 5 at 19:52
5

Recently a patch has been merged fixing grub timeout menu to 30 seconds for UEFI systems with /boot on lvm or btrfs.

The reason for that in some cases a user can't access boot menu. grub can't write to lvm or btrfs.

See this bug report for more details.

If you look into grub.cfg, you'll see this:

if [ "${recordfail}" = 1 ] ; then
  set timeout=30
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=hidden
    set timeout=0
  # Fallback hidden-timeout code in case the timeout_style feature is
  # unavailable.
  elif sleep --interruptible 0 ; then
    set timeout=0
  fi
fi
if [ $grub_platform = efi ]; then
  set timeout=30
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
  fi
fi

You can change it manually, but it will be reverted on update-grub.

This can be fixed by setting

GRUB_RECORDFAIL_TIMEOUT=0

in /etc/default/grub followed by sudo update-grub command.

if you are sure you'll be able to access UEFI settings. If not quite sure, set it to 5, or 10.

  • Thank you for this fast answer. I have EFI and LVM, but /boot is the only partition outside of the Volume Group. So it seems that I have to "suffer" for the benefit of those who have put /boot into LVM (or stop the wait by hitting 'ENTER'). – muclux Mar 5 at 20:00
  • I have to suffer too with boot on btrfs. It makes no sense for me, but this is not my decision. – Pilot6 Mar 5 at 20:01
  • Why the boot menu at all. Why not set an interrupt key if you want to boot into something else? It's a pain. – Ubuntu_enthusiast Sep 9 at 11:28
  • There is a workaround. i am updating the answer. – Pilot6 Sep 9 at 11:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.