
Fix? Stick a sticky-note over the touchpad. This surprisingly works!

if [ ${recordfail} = 1 ]; thenWhich means, the timeout counter is disabled whenever the recordfail variable is set. This is nice for desktop environment, which has a monitor, so I can see the Grub countdown is disabled so I can proceed with Repair option if I have to, but for headless servers the computer just sits idle at Grub screen, puzzling the poor sysadmin.
set timeout=-1
else
set timeout=10
fi