diff options
author | Brent Baude <bbaude@redhat.com> | 2021-08-11 14:30:52 -0500 |
---|---|---|
committer | Brent Baude <bbaude@redhat.com> | 2021-08-11 14:39:00 -0500 |
commit | 643178c1ec03df481d9e38b84f36f9bd48550ec4 (patch) | |
tree | 3be26bba6b5c3f3b6e3aca3b9791480f69a0ff65 | |
parent | 1968fdc874516e1195985024fd268d9a8da22953 (diff) | |
download | podman-643178c1ec03df481d9e38b84f36f9bd48550ec4.tar.gz podman-643178c1ec03df481d9e38b84f36f9bd48550ec4.tar.bz2 podman-643178c1ec03df481d9e38b84f36f9bd48550ec4.zip |
Revert "Use static path for gvproxy"
This reverts commit 4acc1d685066faa1dc102532ba76a81d3ec6bdc0.
[NO TESTS NEEDED]
Signed-off-by: Brent Baude <bbaude@redhat.com>
-rw-r--r-- | pkg/machine/qemu/machine.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/machine/qemu/machine.go b/pkg/machine/qemu/machine.go index 7b1ebcb03..9cb04ff0a 100644 --- a/pkg/machine/qemu/machine.go +++ b/pkg/machine/qemu/machine.go @@ -605,9 +605,9 @@ func CheckActiveVM() (bool, string, error) { // startHostNetworking runs a binary on the host system that allows users // to setup port forwarding to the podman virtual machine func (v *MachineVM) startHostNetworking() error { - binary := filepath.Join("/usr/lib/podman/", machine.ForwarderBinaryName) - if _, err := os.Stat(binary); os.IsNotExist(err) { - return errors.Errorf("unable to find %s", binary) + binary, err := exec.LookPath(machine.ForwarderBinaryName) + if err != nil { + return err } // Listen on all at port 7777 for setting up and tearing // down forwarding |