if Vagrant.has_plugin?("vagrant-disksize")
# Increase disk size to 60GB
config.disksize.size = "60GB"
# Expand /dev/sda mount to use increased disk space
config.vm.provision "shell", run: "once", inline: <<-SHELL
apt-get update && apt-get install -y parted
swapoff -a
sed -i '/swap/d' /etc/fstab
parted --script /dev/sda rm 5
parted --script /dev/sda rm 2
parted ---pretend-input-tty /dev/sda unit % resizepart 1 yes 100
resize2fs /dev/sda1
SHELL
end