Skip to content

Commit 359deda

Browse files
committed
Replace FindExecutablePeer with FindHelperBinary
The WSL machine start was using the function FindExecutablePeer that ignores user configuration (helper_binaries_dir). FindHelperBinary instead is used when starting the machine for the rest of the providers and honors user configuration. This commit requires containers/container-libs@4877783 Signed-off-by: Mario Loriedo <[email protected]>
1 parent 7e2d2aa commit 359deda

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

pkg/machine/wsl/usermodenet.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ import (
99
"os/exec"
1010
"path/filepath"
1111

12-
"github.com/containers/podman/v6/pkg/machine"
1312
"github.com/containers/podman/v6/pkg/machine/env"
1413
"github.com/containers/podman/v6/pkg/machine/vmconfigs"
1514
"github.com/containers/podman/v6/pkg/machine/wsl/wutil"
1615
"github.com/containers/podman/v6/pkg/specgen"
1716
"github.com/sirupsen/logrus"
17+
"go.podman.io/common/pkg/config"
1818
)
1919

2020
const gvForwarderPath = "/usr/libexec/podman/gvforwarder"
@@ -78,7 +78,11 @@ func startUserModeNetworking(mc *vmconfigs.MachineConfig) error {
7878
return nil
7979
}
8080

81-
exe, err := machine.FindExecutablePeer(gvProxy)
81+
cfg, err := config.Default()
82+
if err != nil {
83+
return err
84+
}
85+
exe, err := cfg.FindHelperBinary(gvProxy, false)
8286
if err != nil {
8387
return fmt.Errorf("could not locate %s, which is necessary for user-mode networking, please reinstall", gvProxy)
8488
}

0 commit comments

Comments
 (0)