Merge pull request #9696 from D4rkSh1t/fix-rootpath-for-wsl
fix rootpath if the vagrantfile is located under the root directory (WSL)
This commit is contained in:
commit
3dcc350364
|
@ -396,7 +396,7 @@ module Vagrant
|
|||
root_path = wsl_rootfs
|
||||
# lxrun splits home separate so we need to account
|
||||
# for it's specialness here when we build the path
|
||||
if root_path.end_with?("lxss") && parts.first != "home"
|
||||
if root_path.end_with?("lxss") && !(["root", "home"].include?(parts.first))
|
||||
root_path = "#{root_path}\\rootfs"
|
||||
end
|
||||
[root_path, *parts].join("\\")
|
||||
|
|
Loading…
Reference in New Issue