Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 973  / 1 Year ago, sun, february 5, 2023, 5:06:37

Can't reduce the countdown time from the default 30 seconds in grub 2.04. I am running a fresh Xubuntu 20.04 LTS, with the addition that I've installed newer kernel images, to get access to my CPU temperature.


What I've tried:



  • changed GRUB_TIMEOUT in /etc/default/grub

  • set quickboot to 0 and changed timeout as suggested here

  • changed GRUB_TIMEOUT_STYLE to menu and countdown as proposed in here and in another link I do not find at the moment.

  • Commented out the last line (adjust_timeout) in /etc/grub.d/30_os-prober


After all of these steps I've run sudo update-grub, which run without any error.


My /etc/default/grub file without comments:


GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=countdown
GRUB_TIMEOUT=3
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT=""
GRUB_CMDLINE_LINUX=""



Edit


Right after I've written the question down, I've made another try. I grep-ed all files in /etc/grub.d which had the string 30 in it. Only 00_header has it at two places. The big part of this file is a make_timeout function. This part of the script is reached only if "$recordfail_broken" = 1 or "${recordfail}" = 1. So it indicates that something went wrong, and I probably should debug it, though I have not experienced any drawbacks yet. For the time being I've changed those values from 30 to 3.


More From » grub2

 Answers
4

Try these commands as root


echo 'GRUB_RECORDFAIL_TIMEOUT=$GRUB_TIMEOUT' >> /etc/default/grub
update-grub

There was a regression added at some point in 18.04 that caused grub to trigger recordfail if your /boot partition was an LVM volume, IIRC.


I would have thought it would be fixed for 20.04, but I'm not sure. Here are some of the bug reports I saved



[#1830] Monday, February 6, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
riffnkful

Total Points: 390
Total Questions: 123
Total Answers: 110

Location: Puerto Rico
Member since Sat, Mar 13, 2021
3 Years ago
riffnkful questions
;