Update filesystem type match for WSL2
Fixes shared folder on WSL2 based on #11705
This commit is contained in:
parent
1d0c90943c
commit
203a5f0075
@ -554,6 +554,7 @@ module Vagrant
|
||||
# Get list of local mount paths that are DrvFs file systems
|
||||
#
|
||||
# @return [Array<String>]
|
||||
# @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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user