This default grub behavior could be very annoying especially with virtual machines running headless
or whatever should stand up after failure.
It could be fixed by modifying make_timeout () in /etc/grub.d/00_header:
Original code:
****
make_timeout ()
{
cat << EOF
if [ "\${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=${2}
fi
EOF
}
****
here is how to fix it:
****
make_timeout ()
{
cat << EOF
if [ "\${recordfail}" = 1 ]; then
set timeout=${2}
else
set timeout=${2}
fi
EOF
}
****
/I know it is a "secure programming" approach in terms of how this code looks like now... and yes, it is/
The original hint is taken from here:
http://forum.xbmc.org/showthread.php?t=64857