From 4c41cbe6802711a3463d78f3b5bd7505dd758d9b Mon Sep 17 00:00:00 2001 From: Peter Wilson Date: Fri, 24 Jan 2025 20:14:54 +0000 Subject: [PATCH 1/3] Updated README to reflect WSL 2 command for Windows 11 Co-authored-by: mofosyne --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index ae28b2e45e..2d834c8178 100644 --- a/README.md +++ b/README.md @@ -366,6 +366,13 @@ disable the WIN32 interop feature: sudo sh -c "echo -1 > /proc/sys/fs/binfmt_misc/WSLInterop" ``` +In Windows 11 with WSL 2 the location of the interop flag has changed, as such +the following command should be used instead: + +```sh +sudo sh -c "echo -1 > /proc/sys/fs/binfmt_misc/WSLInterop-late" +``` + In the instance of getting a `Permission Denied` on disabling interop through CLI, it can be permanently disabled by adding the following in `/etc/wsl.conf` From 8e0e278a54193bae6e39312fb666d8f09055a110 Mon Sep 17 00:00:00 2001 From: Peter Wilson Date: Fri, 24 Jan 2025 20:53:03 +0000 Subject: [PATCH 2/3] Add clarity that the cmd may be required on its own or in addition to the previous one --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2d834c8178..5d54a0caa2 100644 --- a/README.md +++ b/README.md @@ -367,7 +367,7 @@ sudo sh -c "echo -1 > /proc/sys/fs/binfmt_misc/WSLInterop" ``` In Windows 11 with WSL 2 the location of the interop flag has changed, as such -the following command should be used instead: +the following command be required instead/addition: ```sh sudo sh -c "echo -1 > /proc/sys/fs/binfmt_misc/WSLInterop-late" From c5543ce4ceaf205032c32c5c6fe6df7ad2c0f3ad Mon Sep 17 00:00:00 2001 From: Peter Wilson Date: Sun, 26 Jan 2025 19:40:43 +0000 Subject: [PATCH 3/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5d54a0caa2..53416389c7 100644 --- a/README.md +++ b/README.md @@ -367,7 +367,7 @@ sudo sh -c "echo -1 > /proc/sys/fs/binfmt_misc/WSLInterop" ``` In Windows 11 with WSL 2 the location of the interop flag has changed, as such -the following command be required instead/addition: +the following command be required instead/additionally: ```sh sudo sh -c "echo -1 > /proc/sys/fs/binfmt_misc/WSLInterop-late"