Ubuntu 17 Grub Timeout Warning Fix

From Bonus Bits
Jump to: navigation, search

Symptom

When running Grub Update update-grub2 a Warning about Grub Hidden Timeout no longer supported is displayed. I got this on Ubuntu Desktop 17.10. One example is after Removing Old Kernel Images and running Grub Update this warning may come up.

Error

Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.


Issue

Setting is replaced/ deprecated


Solution

Edit the grub config and comment out the deprecated setting.

  1. Edit grub config
    sudo vim /etc/default/grub
    
  2. Comment out Hidden Timeout and Timeout Quiet
#GRUB_HIDDEN_TIMEOUT=0
#GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT_STYLE=hidden

Example

GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
#GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
  1. Update Grub
    sudo update-grub
    


Related Articles


Sources