Jump to content


Photo

Starting server automatic by passing grub choice screen

Grub grub starting

  • Please log in to reply
No replies to this topic

#1 brent

brent

    Administrator

  • Administrators
  • 65 posts

Posted 13 February 2013 - 12:32 AM

It is not uncommon when there is new updates to the OS or the kernel it self there will be a long list of choices to boot into after. and If you have a dedicated server with out access outside of SSH then you are in the dark unless you physically go to the location where the server is. Naturally this is not a good practice. We want to be able to reboot the server without any hang ups or timers to keep us from bringing the server back online. Well here is the solution for this. NOTE:: This is just a quick fix aka hack if you will. Currently there is an issue using grub2 and does not like to be tampered with and will cause these behaviors.

open the 00_header file:

 

sudo nano gedit /etc/grub.d/00_header

comment out the last if statement, except for the line with the normal set timeout:

#if [ \${recordfail} = 1 ]; then
#  set timeout=-1
#else
  set timeout=${GRUB_TIMEOUT}
#fi

run update-grub again:

sudo update-grub





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users