path: root/Rakefile
diff options
authorTails developers <>2012-05-12 17:51:30 +0200
committerTails developers <>2012-05-16 12:50:33 +0200
commit703e118c80a355b8c43e927b83b6ef785f96d7ef (patch)
treefe0fa839b078acb4f5f82e4b3f8544a06e999baa /Rakefile
parentc70173c9c8d69d763ca90a26ce97cf2846013e5c (diff)
vagrant: Download and verify from Tails mirror
Vagrant does not currently offer any way to verify a downloaded box file. In order to overcome this limitation, we monkey-patch Vagrant::Action::Box::Download#download method to verify a checksum right after the file has been retrieved. This should definitely implemented upstream in a more proper way but it will do for now.
Diffstat (limited to 'Rakefile')
1 files changed, 3 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index 45b4f05..ccef996 100644
--- a/Rakefile
+++ b/Rakefile
@@ -20,6 +20,9 @@
require 'rubygems'
require 'vagrant'
+# Add Vagrant (monkey-)patch
+require 'vagrant/lib/vagrant_verified_download'
# Path to the directory which holds our Vagrantfile
VAGRANT_PATH = File.expand_path('../vagrant', __FILE__)