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

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
blueocean
Level 3
Level 3
Posts: 108
Joined: Sun Jul 08, 2018 11:50 pm

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

Post by blueocean » Thu Jan 31, 2019 8:38 pm

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 karlchen on Tue Mar 26, 2019 7:43 am, edited 1 time in total.
Reason: Marked the thread as [solved]
To mark this issue solved, go to your original 1st post and click the edit pencil and add [Solved] at the beginning of the title and click Submit.

gm10
Level 18
Level 18
Posts: 8683
Joined: Thu Jun 21, 2018 5:11 pm

Re: Grub2 Timeout 30 seconds after today's update

Post by gm10 » Thu Jan 31, 2019 9:07 pm

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.

blueocean
Level 3
Level 3
Posts: 108
Joined: Sun Jul 08, 2018 11:50 pm

Re: Grub2 Timeout 30 seconds after today's update

Post by blueocean » Thu Jan 31, 2019 10:50 pm

What exactly is "sudo sed -i "/recordfail_broken=/{s/1/0/}" /etc/grub.d/00_header"?
I tried it, but no change happened.
To mark this issue solved, go to your original 1st post and click the edit pencil and add [Solved] at the beginning of the title and click Submit.

hkindle
Level 1
Level 1
Posts: 14
Joined: Sun Jul 23, 2017 4:58 pm

Re: Grub2 Timeout 30 seconds after today's update

Post by hkindle » Thu Jan 31, 2019 11:46 pm

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

Code: Select all

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

gm10
Level 18
Level 18
Posts: 8683
Joined: Thu Jun 21, 2018 5:11 pm

Re: Grub2 Timeout 30 seconds after today's update

Post by gm10 » Fri Feb 01, 2019 4:24 am

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

blueocean
Level 3
Level 3
Posts: 108
Joined: Sun Jul 08, 2018 11:50 pm

Re: Grub2 Timeout 30 seconds after today's update

Post by blueocean » Fri Feb 01, 2019 2:20 pm

Thanks Wondering if they issue an update, will it conflict with this CMD fix?
To mark this issue solved, go to your original 1st post and click the edit pencil and add [Solved] at the beginning of the title and click Submit.

gm10
Level 18
Level 18
Posts: 8683
Joined: Thu Jun 21, 2018 5:11 pm

Re: Grub2 Timeout 30 seconds after today's update

Post by gm10 » Fri Feb 01, 2019 5:16 pm

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

blueocean
Level 3
Level 3
Posts: 108
Joined: Sun Jul 08, 2018 11:50 pm

Re: Grub2 Timeout 30 seconds after today's update

Post by blueocean » Fri Feb 01, 2019 6:11 pm

Thanks!
To mark this issue solved, go to your original 1st post and click the edit pencil and add [Solved] at the beginning of the title and click Submit.

JeremyB
Level 20
Level 20
Posts: 10855
Joined: Fri Feb 21, 2014 8:17 am

Re: Grub2 Timeout 30 seconds after today's update

Post by JeremyB » Sat Feb 02, 2019 4:17 pm


gm10
Level 18
Level 18
Posts: 8683
Joined: Thu Jun 21, 2018 5:11 pm

Re: Grub2 Timeout 30 seconds after today's update

Post by gm10 » Sat Feb 02, 2019 4:31 pm

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: 3
Joined: Mon Dec 14, 2015 7:46 am

Re: Grub2 Timeout 30 seconds after today's update

Post by mint-maniac » Sat Feb 02, 2019 9:29 pm

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
Level 18
Level 18
Posts: 8683
Joined: Thu Jun 21, 2018 5:11 pm

Re: Grub2 Timeout 30 seconds after today's update

Post by gm10 » Sun Feb 03, 2019 4:24 am

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 pm
Thanks!
This is what happens when you don't mark a solved thread as SOLVED (hint). ;)

User avatar
Pjotr
Level 21
Level 21
Posts: 13146
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 » Sun Feb 03, 2019 5:09 am

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 19.2 Tina
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: 3
Joined: Mon Dec 14, 2015 7:46 am

Re: Grub2 Timeout 30 seconds after today's update

Post by mint-maniac » Sun Feb 03, 2019 11:14 am

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.

blueocean
Level 3
Level 3
Posts: 108
Joined: Sun Jul 08, 2018 11:50 pm

Re: Grub2 Timeout 30 seconds after today's update

Post by blueocean » Fri Mar 15, 2019 3:36 pm

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?
To mark this issue solved, go to your original 1st post and click the edit pencil and add [Solved] at the beginning of the title and click Submit.

oz42
Level 1
Level 1
Posts: 7
Joined: Sun Aug 04, 2013 2:36 pm

Re: Grub2 Timeout 30 seconds after today's update

Post by oz42 » Tue Mar 26, 2019 5:01 am

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 21
Level 21
Posts: 13146
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 » Tue Mar 26, 2019 5:31 am

Why the (still rather experimental) BTRFS instead of the good old tried-and-tested EXT4?
Tip: 10 things to do after installing Linux Mint 19.2 Tina
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: 7
Joined: Sun Aug 04, 2013 2:36 pm

Re: Grub2 Timeout 30 seconds after today's update

Post by oz42 » Tue Mar 26, 2019 7:37 am

Why not? THe machine (Notebook) has no important data. Good for a btrfs test.

User avatar
Pjotr
Level 21
Level 21
Posts: 13146
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 » Tue Mar 26, 2019 7:46 am

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 19.2 Tina
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 20
Level 20
Posts: 11209
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: Grub2 Timeout 30 seconds after today's update

Post by karlchen » Tue Mar 26, 2019 7:47 am

oz42 wrote:
Tue Mar 26, 2019 5:01 am
I 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
Linux Mint 19.2 32-bit xfce Desktop, Total Commander 9.22a 32-bit
Linux Mint 18.1 64-bit Cinnamon Desktop, Total Commander 9.22a 64-bit
Windows? - 1 window in every room

Post Reply

Return to “Installation & Boot”