diff --git a/src/Vagrantfile b/src/Vagrantfile index 046ab4c..d5aba62 100644 --- a/src/Vagrantfile +++ b/src/Vagrantfile @@ -93,14 +93,15 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| # chef.json = { :mysql_password => "foo" } # end - $script = %Q{ - sudo apt-get update - sudo apt-get install nasm make build-essential grub qemu zip -y - } + # $script = %Q{ + # sudo apt-get update + # sudo apt-get install nasm make build-essential grub qemu zip -y + # } - config.vm.provision :shell, :inline => $script + # config.vm.provision :shell, :inline => $script + config.vm.provision :shell, path: "scripts/provision.sh" # Enable provisioning with chef server, specifying the chef server URL, # and the path to the validation key (relative to this Vagrantfile). diff --git a/src/scripts/provision.sh b/src/scripts/provision.sh new file mode 100644 index 0000000..98efcfb --- /dev/null +++ b/src/scripts/provision.sh @@ -0,0 +1,5 @@ +sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup +sudo sed -i 's#http://security#http://old-releases#g' /etc/apt/sources.list +sudo sed -i 's#http://us.archive#http://old-releases#g' /etc/apt/sources.list +sudo apt-get update +sudo apt-get install nasm make build-essential grub qemu zip -y