Skip to content

Instantly share code, notes, and snippets.

@cayblood
Created February 19, 2012 21:57
Show Gist options
  • Save cayblood/1866077 to your computer and use it in GitHub Desktop.
Save cayblood/1866077 to your computer and use it in GitHub Desktop.
#!/bin/sh
export DEBIAN_FRONTEND=noninteractive
sudo apt-get update
# fix the notorious perl locale error
sudo apt-get install -y multipath-tools
export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
sudo locale-gen en_US.UTF-8
sudo dpkg-reconfigure locales
# prevent the grub-pc package from doing an interactive prompt on upgrade
# may not want to run this in a deployment environment
sudo apt-get install -y debconf-utils
printf "%s\t%s\t%s\n" grub-pc grub-pc/install_devices multiselect |
sudo debconf-set-selections
printf "%s\t%s\t%s\t%s\n" grub-pc grub-pc/install_devices_empty boolean true |
sudo debconf-set-selections
sudo apt-get -o Dpkg::Options::="--force-confnew" --force-yes -fuy install grub-pc
sudo apt-get -y upgrade
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment