Add back WSL2_VM_ID environment varialbe to the system distro.

This commit is contained in:
Ben Hillis 2025-12-05 09:17:18 -08:00
parent 1390e644fb
commit 95210afb41

View File

@ -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);
}
}
//