Recreate the Vagrant environment when required by WSL setup
This commit is contained in:
parent
3c44ce9742
commit
fa2dd5b3fb
|
@ -121,7 +121,11 @@ begin
|
||||||
# some extra setup to allow access to Vagrant managed machines
|
# some extra setup to allow access to Vagrant managed machines
|
||||||
# outside the subsystem
|
# outside the subsystem
|
||||||
if Vagrant::Util::Platform.wsl?
|
if Vagrant::Util::Platform.wsl?
|
||||||
Vagrant::Util::Platform.wsl_init(env, logger)
|
recreate_env = Vagrant::Util::Platform.wsl_init(env, logger)
|
||||||
|
if recreate_env
|
||||||
|
logger.info("Re-creating Vagrant environment due to WSL modifications.")
|
||||||
|
env = Vagrant::Environment.new(opts)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if !Vagrant.in_installer? && !Vagrant.very_quiet?
|
if !Vagrant.in_installer? && !Vagrant.very_quiet?
|
||||||
|
|
Loading…
Reference in New Issue