labgrid icon indicating copy to clipboard operation
labgrid copied to clipboard

remote/exporter: support /usr/local/sbin/ser2net

Open khilman opened this issue 3 years ago • 3 comments

Locally modified/compiled installs of ser2net could be in /usr/local, allow that as a fallback when not found in the other locations.

Signed-off-by: Kevin Hilman [email protected]

khilman avatar May 13 '22 22:05 khilman

Since this is just a fallback (which is already somewhat distribution specific), I think the correct way to solve this is to setup the correct PATH for the user/service calling the exporter and including /usr/local/bin/ there, since we try to resolve the PATH via which first.

Emantor avatar May 27 '22 08:05 Emantor

@khilman would using $PATH work for you?

jluebbe avatar Jun 27 '22 16:06 jluebbe

Using $PATH does work, but it's not great IMO. The problem with $PATH is that ser2net installs to /usr/local/sbin which is not typically in the path of a normal user. But I understand why you want to rely on $PATH so it's OK for me. It really only affects me until the ser2net features I'm using get pulled into distro versions of ser2net.

khilman avatar Jun 27 '22 17:06 khilman

It really only affects me until the ser2net features I'm using get pulled into distro versions of ser2net.

I'm assuming this happened in the meantime. So let's close this.

Bastian-Krause avatar Oct 20 '23 20:10 Bastian-Krause