Skip to content

fix: remove refreshenv from WSL2 install scripts, fixes #7024 [skip ci]#7026

Merged
rfay merged 1 commit into
ddev:mainfrom
rfay:20250226_rfay_wsl_install
Mar 6, 2025
Merged

fix: remove refreshenv from WSL2 install scripts, fixes #7024 [skip ci]#7026
rfay merged 1 commit into
ddev:mainfrom
rfay:20250226_rfay_wsl_install

Conversation

@rfay

@rfay rfay commented Feb 26, 2025

Copy link
Copy Markdown
Member

The Issue

In some new Windows 11 versions, wmic.exe is either not installed or not in the PATH.
It's also part of a deprecated subsystem.

How This PR Solves The Issue

  • Remove the refreshenv that happened to call this from the two WSL2 install scripts
  • Since WSL2 now uses systemd, there's no need for the system service docker start that was in there.

Manual Testing Instructions

Use a fresh clean Ubuntu as the default WSL2.
Install in both contexts (docker-ce and Docker Desktop), with wmic out of the path, as described in the issue.

Automated Testing Overview

There is no testing for this.

@rfay rfay marked this pull request as ready for review February 27, 2025 14:46
@rfay rfay requested a review from a team as a code owner February 27, 2025 14:46
@rfay

rfay commented Feb 27, 2025

Copy link
Copy Markdown
Member Author

I imagine this is totally fine but will need to run through both scripts with a clean new WSL2 instance before pulling.

@rfay rfay force-pushed the 20250226_rfay_wsl_install branch from 03851d3 to e222b9e Compare March 6, 2025 15:14

@rfay rfay left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I manually tested both of these from scratch, and they seem to be fine.

@rfay rfay merged commit 893e9a4 into ddev:main Mar 6, 2025
@rfay rfay deleted the 20250226_rfay_wsl_install branch March 6, 2025 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant