From 134060d577e347c2eda0b6814a928462a8c99ed4 Mon Sep 17 00:00:00 2001 From: Maximilian Gotter Date: Tue, 17 Apr 2018 07:10:41 +0000 Subject: [PATCH] fix rootpath if the vagrantfile is located under the root directory --- lib/vagrant/util/platform.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant/util/platform.rb b/lib/vagrant/util/platform.rb index 5bc0a603b..af24cd014 100644 --- a/lib/vagrant/util/platform.rb +++ b/lib/vagrant/util/platform.rb @@ -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("\\")