From 6321013d67b4cbbd5943541ee933f96f7c1ebed3 Mon Sep 17 00:00:00 2001 From: "Jason T. Greene" Date: Wed, 13 Dec 2023 22:54:21 -0600 Subject: [PATCH] Auto-correct previous bad image install of podman-net-usermode v39.0.1-3 introduced an update to gvforwarder with defunct perms. Detect and correct this condition so that users do not need to reinit a fresh user-mode dist. [NO NEW TESTS NEEDED] Signed-off-by: Jason T. Greene --- pkg/machine/wsl/usermodenet.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/machine/wsl/usermodenet.go b/pkg/machine/wsl/usermodenet.go index 5fb6aa32bc..b68140c2e0 100644 --- a/pkg/machine/wsl/usermodenet.go +++ b/pkg/machine/wsl/usermodenet.go @@ -29,6 +29,8 @@ fi if [[ ! $ROUTE =~ default\ via ]]; then exit 3 fi +# auto-correct previous installs of known bad image v39.0.3 +chmod 755 /usr/local/bin/vm nohup /usr/local/bin/vm -iface podman-usermode -stop-if-exist ignore -url "stdio:$GVPROXY?listen-stdio=accept" > /var/log/vm.log 2> /var/log/vm.err < /dev/null & echo $! > $STATE/vm.pid sleep 1