mirror of
https://github.com/microsoft/WSL.git
synced 2025-12-11 04:35:57 -06:00
Add back WSL2_VM_ID environment varialbe to the system distro. (#13835)
Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>
This commit is contained in:
parent
caf38dcad2
commit
7741740f87
@ -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