Skip to content

Instantly share code, notes, and snippets.

@cloudnull
Created February 26, 2014 16:36
Show Gist options
  • Save cloudnull/9233176 to your computer and use it in GitHub Desktop.
Save cloudnull/9233176 to your computer and use it in GitHub Desktop.
make grub boot faster.
# Setup the box for AIO use
function setup_grub() {
if [ -f "/etc/default/grub" ];then
cat > /etc/default/grub <<EOF
GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=2
GRUB_DISTRIBUTOR="Rackspace Private Cloud"
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
GRUB_RECORDFAIL_TIMEOUT=1
EOF
update-grub
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment