Skip to content

Commit 3fc6516

Browse files
authored
Merge pull request #3598 from jandubois/wsl-2.5.7
Fix installation of dummy WSL2 distro
2 parents f43ab80 + 364140d commit 3fc6516

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,15 @@ jobs:
148148
# otherwise `wsl --list --verbose` (called from Lima) fails:
149149
# https://github.com/lima-vm/lima/pull/1826#issuecomment-1729993334
150150
# The distro image itself is not consumed by Lima.
151+
# Starting with WSL2 version 2.5.7.0 the distro will be rejected
152+
# if it doesn't contain /bin/sh and /etc.
151153
# ------------------------------------------------------------------
152-
wsl --import dummy $env:TEMP nul
154+
mkdir dummy
155+
mkdir dummy\bin
156+
mkdir dummy\etc
157+
echo "" >dummy\bin\sh
158+
tar -cf dummy.tar --format ustar -C dummy .
159+
wsl --import dummy $env:TEMP dummy.tar
153160
wsl --list --verbose
154161
- name: Set gitconfig
155162
run: |

0 commit comments

Comments
 (0)