mirror of https://github.com/microsoft/WSL
Add back WSL2_VM_ID environment varialbe to the system distro.
This commit is contained in:
parent
1390e644fb
commit
95210afb41
|
|
@ -2258,7 +2258,16 @@ Return Value:
|
|||
if (Value != nullptr)
|
||||
{
|
||||
Config.VmId = Value;
|
||||
unsetenv(LX_WSL2_VM_ID_ENV);
|
||||
|
||||
//
|
||||
// Unset the environment variable for user distros.
|
||||
//
|
||||
|
||||
Value = getenv(LX_WSL2_SHARED_MEMORY_OB_DIRECTORY);
|
||||
if (!Value)
|
||||
{
|
||||
unsetenv(LX_WSL2_VM_ID_ENV);
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
|
|
|
|||
Loading…
Reference in New Issue