vagrant-lxc-ng/development/shell-provisioning/upgrade-kernel
Fabio Rehm ef00eabd23 Remove apt-get clean from upgrade-kernel script used for provisioning
VB dev box to leverage vagrant boxes cache
2013-03-09 19:22:36 -03:00

14 lines
390 B
Bash
Executable file

#!/bin/bash
set -e
if [[ `uname -r` != "3.5.0-17-generic" ]]; then
exit 0
fi
echo 'An old kernel was found on the guest machine and it will be upgraded' 1>&2
echo 'Please reload the box after provisioning when finished' 1>&2
sudo apt-get update
sudo apt-get install linux-image-3.5.0-25-generic linux-headers-3.5.0-25-generic -y
sudo apt-get dist-upgrade -y
sudo apt-get autoremove -y