Friday, March 26, 2010

How I got timeout to work on Grub 2

Well, the problem was after I upgraded my grub from grub-x.y to grub-2, the machine was not automatically starting to boot after the timeout (with the countdown at the bottom of the grub menu).

This is problably a problem only when the grub is upgraded, because on my other machine where I did a fresh install, the problem is not there.

I modified the
set timeout=-1 
set timeout=5
in /etc/grub.d/00_header and then executed the update-grub (of course none of this is possible without sudo)

if [ \${recordfail} = 1 ]; then
  set timeout=5
  set timeout=${GRUB_TIMEOUT}


I am not sure if this is the right way to do it, but it worked!

No comments: