Skip to content

Instantly share code, notes, and snippets.

@harmy
Created March 16, 2013 06:37
Show Gist options
  • Save harmy/5175275 to your computer and use it in GitHub Desktop.
Save harmy/5175275 to your computer and use it in GitHub Desktop.
devops Q&A
Q:Grub2 wont start after power failure
A:This was actually new for me - but it seems that this behaviour is caused by the last lines in /etc/grub.d/00_header
if [ \${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=${GRUB_TIMEOUT}
fi
I suggest that you create a /etc/grub.d/01_recordfail_override, set the +x permission, and make it look like this:
cat << EOF
set timeout=${GRUB_TIMEOUT}
EOF
then run dpkg-reconfigure grub-pc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment