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 
to
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
else
  set timeout=${GRUB_TIMEOUT}
fi

update-grub


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

No comments: