[Bug 1273764] Re: Grub ignores TIMEOUT options on /etc/default/grub

Estanislao estanislao.gonzalez at gmail.com
Sat Mar 9 18:25:31 UTC 2019


My workaorund is setting GRUB_RECORDFAIL_TIMEOUT in /etc/default/grub to
the timeout I need.

This is a very strange behavior and probably not intended!

This is the logic behind it:
# in /etc/grub.d/00_header there's a function that calls grub-probe and if the result is "lvm" (my case) it ends setting the variable recordfail_broken=1 (as if there would have been a problem while booting)
# because of this later on, and if booting in efi, the variable GRUB_RECORDFAIL_TIMEOUT is being used to set the timeout and not GRUB_TIMEOUT (as I would expect).

This is not the intended behavior as described in
https://help.ubuntu.com/community/Grub2

So, if you are booting from a lvm volume, GRUB_TIMEOUT won't be used.

What is the intention of this? why lvm => recordfail_broken=1 which
implies every boot is "as if last one didn't complete properly"... makes
little sense to me though look intentionally made that way.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/1273764

Title:
  Grub ignores TIMEOUT options on /etc/default/grub

Status in grub2 package in Ubuntu:
  Triaged
Status in grub2 source package in Vivid:
  Triaged

Bug description:
  This is a fresh install of trusty (amd64), without proposed (since
  this grub package has reached the regular repos).

  I have attached my `/etc/default/grub` file. After modifying it, I
  make sure to run update-grub, but the changes won't take effect on
  next reboot: the menu is shown with a timeout of 10 seconds even when
  GRUB_TIMEOUT_STYLE is set to countdown.

  After reading grub.cfg and googling a bit I found this:

  https://gist.github.com/LeahCim/9332432

  (30_os-prober is overriding the values of GRUB_TIMEOUT and
  GRUB_TIMEOUT_STYLE.)

  Description:	Ubuntu Trusty Tahr (development branch)
  Release:	14.04

  grub-pc:
    Installed: 2.02~beta2-7
    Candidate: 2.02~beta2-7
    Version table:
   *** 2.02~beta2-7 0
          500 http://do.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
          100 /var/lib/dpkg/status

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1273764/+subscriptions



More information about the foundations-bugs mailing list