mirror of
https://github.com/microsoft/WSL.git
synced 2025-12-10 00:44:55 -06:00
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…
x
Reference in New Issue
Block a user