From abdbd2de0898b5c599dce987cbd2f221286b61c9 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 8 Feb 2013 16:33:09 -0800 Subject: [PATCH] Warning and automatically handle "v-root" --- plugins/kernel_v1/config/vm.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/plugins/kernel_v1/config/vm.rb b/plugins/kernel_v1/config/vm.rb index af98622d1..2efd38da1 100644 --- a/plugins/kernel_v1/config/vm.rb +++ b/plugins/kernel_v1/config/vm.rb @@ -142,6 +142,16 @@ module VagrantPlugins guestpath = options.delete(:guestpath) hostpath = options.delete(:hostpath) + # This was the name of the old default /vagrant shared folder. + # We warn the use that this changed, but also silently change + # it to try to make things work properly. + if options[:id] == "v-root" + warnings << "The 'v-root' shared folders have been renamed to 'vagrant-root'.\n" + + "Assuming you meant 'vagrant-root'..." + + options[:id] = "vagrant-root" + end + new.vm.synced_folder(hostpath, guestpath, options) end