[Solved] Grub2 Timeout 30 seconds after today's update

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
LanceM

[Solved] Grub2 Timeout 30 seconds after today's update

Post by LanceM »

I now have a 30 sec timeout delay in booting after installing the new Grub2 and Grub-signed updates today. I checked ect/default/grub and default and timeout are still set at =0 . Any fix for this?
Last edited by SMG on Sat Apr 16, 2022 9:49 pm, edited 2 times in total.
Reason: Locking 3yr old topic.
gm10

Re: Grub2 Timeout 30 seconds after today's update

Post by gm10 »

blueocean wrote: Thu Jan 31, 2019 8:38 pm Any fix for this?
In a terminal window run:

Code: Select all

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

Code: Select all

sudo update-grub
The reason for the change is that the maintainer at Ubuntu doesn't know when to press Shift during boot and only know to bring up the menu via Ctrl+Alt+Del, which won't work with GRUB installed to an LVM partition, so they thought they'd just force 30 seconds of menu on everyone using EFI + LVM. Genius...!
Last edited by gm10 on Fri Feb 01, 2019 4:22 am, edited 3 times in total.
LanceM

Re: Grub2 Timeout 30 seconds after today's update

Post by LanceM »

What exactly is "sudo sed -i "/recordfail_broken=/{s/1/0/}" /etc/grub.d/00_header"?
I tried it, but no change happened.
hkindle
Level 1
Level 1
Posts: 21
Joined: Sun Jul 23, 2017 4:58 pm

Re: Grub2 Timeout 30 seconds after today's update

Post by hkindle »

Same problem.
Fix above did not work for me either.

Code: Select all

sudo -s update-grub
After the fix worked for me.
gm10

Re: Grub2 Timeout 30 seconds after today's update

Post by gm10 »

Thanks hkindle, sorry for failing to mention that. Added to my post above.
LanceM

Re: Grub2 Timeout 30 seconds after today's update

Post by LanceM »

Thanks Wondering if they issue an update, will it conflict with this CMD fix?
gm10

Re: Grub2 Timeout 30 seconds after today's update

Post by gm10 »

At worst an update overwrites it and you can apply my patch again.
LanceM

Re: Grub2 Timeout 30 seconds after today's update

Post by LanceM »

Thanks!
JeremyB
Level 21
Level 21
Posts: 13846
Joined: Fri Feb 21, 2014 8:17 am

Re: Grub2 Timeout 30 seconds after today's update

Post by JeremyB »

gm10

Re: Grub2 Timeout 30 seconds after today's update

Post by gm10 »

JeremyB wrote: Sat Feb 02, 2019 4:17 pm If this is happening on LVM, see https://bugs.launchpad.net/ubuntu/+sour ... omments/45
This is about LVM, but that bug is unrelated, the thread here isn't about a bug but this very intentional change:

Code: Select all

grub2 (2.02-2ubuntu8.10) bionic; urgency=medium
[...]
  [ Steve Langasek ]
  * debian/patches/quick-boot-lvm.patch: If we don't have writable
    grubenv and we're on EFI, always show the menu.  Closes LP: #1800722.

 -- Mathieu Trudel-Lapierre <cyphermox@ubuntu.com>  Wed, 09 Jan 2019 14:04:09 -0500
mint-maniac
Level 1
Level 1
Posts: 10
Joined: Mon Dec 14, 2015 7:46 am

Re: Grub2 Timeout 30 seconds after today's update

Post by mint-maniac »

I noticed this and tracked it also down to the same update change causing grub to always pop up. The change in grub refers to having an unsigned kernel.
I noticed that when I run dpkg -l linux and look for images, I'm seeing an unsigned kernel package (supposedly not installed) and a signed one installed.
This is after I uninstalled 4.15.0-44.47 (after upgrading to 4.15.0-45.57) and then reinstalling and rolling back to it (I did that after thinking the kernel update caused the issue rather than the grub update). It's possible that the churning created these two entries but after uninstalling 4.15.0-45.47, I'm not seeing remnants of it in dpkg (nor for any other kernel that I have uninstalled in the past) so I'm doubting that this kernel uninstall left something.

Anyway, are we supposed to see both a signed and unsigned package like this???

ii linux-image-4.15.0-44-generic 4.15.0-44.47 amd64 Signed kernel image generic
un linux-image-unsigned-4.15.0-44-generic <none> <none> (no description available)
gm10

Re: Grub2 Timeout 30 seconds after today's update

Post by gm10 »

mint-maniac wrote: Sat Feb 02, 2019 9:29 pm Anyway, are we supposed to see both a signed and unsigned package like this???
Yes.

Also that's completely unrelated to this thread and the change in GRUB discussed here has nothing to do with unsigned kernels, either. For the solution to thread's issue, see my first reply to the thread. If you have a different issue, please make that a different thread.
blueocean wrote: Fri Feb 01, 2019 6:11 pmThanks!
This is what happens when you don't mark a solved thread as SOLVED (hint). ;)
User avatar
Pjotr
Level 24
Level 24
Posts: 20072
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: Grub2 Timeout 30 seconds after today's update

Post by Pjotr »

Sideline (as long as it isn't marked as solved): :lol:

Everybody who has checked the LVM box (in Ubiquity) during installation of Mint: are you sure that you had a good reason for doing that? If not, you shouldn't have checked that box at all.

In most cases, LVM is just an unnecessary complication with no advantages at all, which can cause serious trouble.
Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
mint-maniac
Level 1
Level 1
Posts: 10
Joined: Mon Dec 14, 2015 7:46 am

Re: Grub2 Timeout 30 seconds after today's update

Post by mint-maniac »

The change log for the grub change is here:

https://launchpad.net/ubuntu/+source/gr ... ubuntu8.10

and specifically mentions checks for signed/unsigned kernels.
LanceM

Re: Grub2 Timeout 30 seconds after today's update

Post by LanceM »

Another related mystery. Doing a clean install of Mint 19.1 Cinnamon in UEFI mode using Ext4 for / resulted in no 30 boot delay. After completely updating the system, still no boot delay. Then cleaning the same SSD and doing the same install but using Btrfs as / resulted in the 30 second boot delay. Updating the system made no difference. How is this possible?
oz42
Level 1
Level 1
Posts: 13
Joined: Sun Aug 04, 2013 2:36 pm

Re: Grub2 Timeout 30 seconds after today's update

Post by oz42 »

I have installed 19.1 twice on the same machine on btrfs. First time in BIOS mode, no problem. Second time in UEFI mode: grub2 delay is fixed at 30 seconds.
User avatar
Pjotr
Level 24
Level 24
Posts: 20072
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: Grub2 Timeout 30 seconds after today's update

Post by Pjotr »

Why the (still rather experimental) BTRFS instead of the good old tried-and-tested EXT4?
Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
oz42
Level 1
Level 1
Posts: 13
Joined: Sun Aug 04, 2013 2:36 pm

Re: Grub2 Timeout 30 seconds after today's update

Post by oz42 »

Why not? THe machine (Notebook) has no important data. Good for a btrfs test.
User avatar
Pjotr
Level 24
Level 24
Posts: 20072
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: Grub2 Timeout 30 seconds after today's update

Post by Pjotr »

oz42 wrote: Tue Mar 26, 2019 7:37 am Why not?
Well, maybe because you can experience some unexpected bugs and hitches from time to time. Like (possibly) an inexplicable increase in the Grub timeout. :wink:
Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
User avatar
karlchen
Level 23
Level 23
Posts: 18209
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: Grub2 Timeout 30 seconds after today's update

Post by karlchen »

oz42 wrote: Tue Mar 26, 2019 5:01 amI have installed 19.1 [...] Second time in UEFI mode: grub2 delay is fixed at 30 seconds.
gm10 had explained why the 30 seconds occur and how to solve the issue a lot of posts above already: workaround/solution
Image
The people of Alderaan have been bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine for 771 days now.
Lifeline
Locked

Return to “Installation & Boot”