mirror of
https://github.com/podman-desktop/podman-desktop
synced 2026-05-24 10:18:53 +00:00
fix: add suggestion when WSL seems to require a reboot (#7007)
Signed-off-by: lstocchi <lstocchi@redhat.com>
This commit is contained in:
parent
c132164cb4
commit
341e70d1cd
2 changed files with 9 additions and 0 deletions
|
|
@ -503,6 +503,10 @@ test('expect winWSL2 preflight check return failure result if the machine has WS
|
|||
expect(result.description).equal(
|
||||
'WSL2 seems to be installed but the system needs to be restarted so the changes can take effect.',
|
||||
);
|
||||
expect(result.docLinksDescription).equal(
|
||||
`If already restarted, call 'wsl --install --no-distribution' in a terminal.`,
|
||||
);
|
||||
expect(result.docLinks[0].url).equal('https://learn.microsoft.com/en-us/windows/wsl/install');
|
||||
});
|
||||
|
||||
test('expect winWSL2 preflight check return successful result if the machine has WSL2 installed and the reboot check fails with a code different from WSL_E_WSL_OPTIONAL_COMPONENT_REQUIRED', async () => {
|
||||
|
|
|
|||
|
|
@ -666,6 +666,11 @@ class WSL2Check extends BaseCheck {
|
|||
return this.createFailureResult({
|
||||
description:
|
||||
'WSL2 seems to be installed but the system needs to be restarted so the changes can take effect.',
|
||||
docLinksDescription: `If already restarted, call 'wsl --install --no-distribution' in a terminal.`,
|
||||
docLinks: {
|
||||
url: 'https://learn.microsoft.com/en-us/windows/wsl/install',
|
||||
title: 'WSL2 Manual Installation Steps',
|
||||
},
|
||||
});
|
||||
}
|
||||
} catch (err) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue