fix rootpath if the vagrantfile is located under the root directory

This commit is contained in:
Maximilian Gotter 2018-04-17 07:10:41 +00:00
parent e6887b8305
commit 134060d577
1 changed files with 1 additions and 1 deletions

View File

@ -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("\\")