Posted On September 13, 2020

Ubuntu/Lubuntu 20.04 GRUB_TIME=0 Defaults to 10 Seconds Instead of Zero

kimconnect 0 comments
blog.KimConnect.com >> Linux >> Ubuntu/Lubuntu 20.04 GRUB_TIME=0 Defaults to 10 Seconds Instead of Zero
# GRUB configuration that still resulted in a count-down of 14 seconds
GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=/dev/disk/by-uuid/d7623939-d093-4461-bcd9-deef3e22427c"
GRUB_CMDLINE_LINUX=""

# Option 1: Fix this bug

sudo vim /etc/grub.d/30_os-prober
### comment out the last line ###
#adjust_timeout

sudo vim /etc/default/grub
### Set these 2 lines ###
GRUB_TIMEOUT=1 # value of 1 will count as 1,0; while, value of 0 will be converted to 3,2,1,0
GRUB_TIMEOUT_STYLE=hidden
GRUB_RECORDFAIL_TIMEOUT=0

# Tested these to see no effects
# Save the $timeout and $timeout_style values set by /etc/grub.d/00_header
# before /etc/grub.d/30_os-prober misconfigures them
sudo cat << EOF > /etc/grub.d/25_pre-os-prober
set timeout_bak=\${timeout}
set timeout_style_bak=\${timeout_style}
EOF

# Reset $timeout and $timeout_style to their original values set by /etc/grub.d/00_header
# before /etc/grub.d/30_os-prober misconfigures them
sudo cat << EOF > /etc/grub.d/35_post-os-prober
set timeout=\${timeout_bak}
set timeout_style=\${timeout_style_bak}
EOF

sudo update-grub

# Option 2: install Grub customizer
# sudo apt install Grub2customizer

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

Installing Simple NFS GUI (for Ubuntu / Mint / Debian)

Overview: Simple NFS GUI is a Linux application that automates the whole NFS share configuration…

Networking: Upgrading Legacy Ubiquiti Devices

Step 1: obtain the bin URL from https://www.ui.com/download/unifi/unifi-ap/uaplr Step 2: perform the upgrade rambo@kimlinux:/home/rambo# ssh…

Install Remote Desktop on Lubuntu & Wireshark

Update May 2020: Current versions of Ubuntu / Redhat 20.04 contain broken xrdp packages. Thus,…