--import-in-place
does not invoke plugin WSLPluginAPI_OnDistributionRegistered
#12370
Open
1 of 2 tasks
Labels
Windows Version
Microsoft Windows [Version 10.0.22631.4460]
WSL Version
2.3.24.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.153.1-2
Distro Version
No response
Other Software
No response
Repro Steps
wsl --import-in-place Ubuntu C:\Users\User\Desktop\Ubuntu-24.04-LTS-x86_64.vhdx
WSLPluginAPI_OnDistributionRegistered
is not invokedwsl --list
wsl --distribution Ubuntu
(checking if the distribution registration callout is invoked later)WSLPluginAPI_OnDistributionRegistered
is not invokedWSLPluginAPI_OnDistributionStarted
is invoked without any priorWSLPluginAPI_OnDistributionRegistered
wsl --unregister Ubuntu
OnDistributionUnregistered
is invokedIn contrast, using
--import
invokes the distribution registered plugin callout immediately. This behavior means that using--import-in-place
does not provide visibility of a distribution being registered to the plugin. The plugin is only informed of a distribution being unregistered when--import-in-place
is used. Also note that--import
invokes the plugin callout immediately, it does not require the distribution be started.Expected Behavior
The
--import-in-place
command should result inWSLPluginAPI_OnDistributionRegistered
being invoked just as--import
does.Actual Behavior
The
--import-in-place
command never notifies the plugin of distribution registration.Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: