Skip to content

Commit

Permalink
Auto-correct previous bad image install of podman-net-usermode
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
n1hility committed Dec 15, 2023
1 parent b82e336 commit 6321013
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/machine/wsl/usermodenet.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6321013

Please sign in to comment.