core: Create directory before real_path [GH-2196]
This commit is contained in:
parent
56efc1862a
commit
3090e313f1
|
@ -15,6 +15,8 @@ BUG FIXES:
|
|||
- core: Convert forwarded port parameters to integers. [GH-2173]
|
||||
- core: Don't spike CPU to 100% while waiting for machine to boot. [GH-2163]
|
||||
- core: Increase timeout for individual SSH connection to 60 seconds. [GH-2163]
|
||||
- core: Call realpath after creating directory so NFS directory creation
|
||||
works. [GH-2196]
|
||||
- hosts/arch: NFS exporting works properly, no exceptions. [GH-2161]
|
||||
- hosts/bsd: Use only `sudo` for writing NFS exports. This lets NFS
|
||||
exports work if you have sudo privs but not `su`. [GH-2191]
|
||||
|
|
|
@ -40,9 +40,7 @@ module Vagrant
|
|||
# Expand the host path, create it if we have to and
|
||||
# store away the folder.
|
||||
hostpath = Pathname.new(opts[:hostpath]).
|
||||
expand_path(env[:root_path]).
|
||||
realpath
|
||||
hostpath = Util::Platform.fs_real_path(hostpath)
|
||||
expand_path(env[:root_path])
|
||||
|
||||
if !hostpath.directory? && opts[:create]
|
||||
# Host path doesn't exist, so let's create it.
|
||||
|
@ -56,6 +54,12 @@ module Vagrant
|
|||
end
|
||||
end
|
||||
|
||||
# Determine the real path by expanding symlinks and getting
|
||||
# proper casing. We have to do this after creating it
|
||||
# if it doesn't exist.
|
||||
hostpath = hostpath.realpath
|
||||
hostpath = Util::Platform.fs_real_path(hostpath)
|
||||
|
||||
# Set the hostpath back on the options and save it
|
||||
opts[:hostpath] = hostpath.to_s
|
||||
folders[id] = opts
|
||||
|
|
Loading…
Reference in New Issue