From b5c75b89a981991b8b67542fa1dfa8ec5a2f4c98 Mon Sep 17 00:00:00 2001 From: Bryon Roche Date: Mon, 7 Jan 2013 16:19:17 -0800 Subject: [PATCH] Make box creation not cross filesystems. This will cause issues on modern linux which uses a tmpfs-backed tmpdir. --- lib/vagrant/box_collection.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant/box_collection.rb b/lib/vagrant/box_collection.rb index 5fca6d75f..2d28bcda8 100644 --- a/lib/vagrant/box_collection.rb +++ b/lib/vagrant/box_collection.rb @@ -84,7 +84,7 @@ module Vagrant # Create a temporary directory since we're not sure at this point if # the box we're unpackaging already exists (if no provider was given) - Dir.mktmpdir("vagrant-") do |temp_dir| + Dir.mktmpdir(["vagrant-tmp-", provider.to_s]) do |temp_dir| temp_dir = Pathname.new(temp_dir) # Extract the box into a temporary directory.