From 203a5f0075c4377bfee6006af77dcdd14f3da6aa Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Wed, 18 Nov 2020 10:58:33 -0800 Subject: [PATCH] Update filesystem type match for WSL2 Fixes shared folder on WSL2 based on #11705 --- lib/vagrant/util/platform.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/vagrant/util/platform.rb b/lib/vagrant/util/platform.rb index 1ec14819c..c8658e185 100644 --- a/lib/vagrant/util/platform.rb +++ b/lib/vagrant/util/platform.rb @@ -554,6 +554,7 @@ module Vagrant # Get list of local mount paths that are DrvFs file systems # # @return [Array] + # @todo(chrisroberts): Constantize types for check def wsl_drvfs_mounts if !defined?(@_wsl_drvfs_mounts) @_wsl_drvfs_mounts = [] @@ -561,7 +562,7 @@ module Vagrant result = Util::Subprocess.execute("mount") result.stdout.each_line do |line| info = line.match(MOUNT_PATTERN) - if info && info[:type] == "drvfs" + if info && (info[:type] == "drvfs" || info[:type] == "9p") @_wsl_drvfs_mounts << info[:mount] end end