nebraska: Add LD_LIBRARY_PATH to nebraska.conf

python3 shared libraries are installed in /usr/local/${LIBDIR}. In
CrOS builds ld.so.conf contains /usr/local/${LIBDIR} and LD_LIBRARY_PATH
is also configured globally in the development rootfs. Including
/usr/local path in ld.so.conf has led to bugs where binaries that
link against libraries in /usr/local are not detected in testing but
result in errors in releases. MiniOS avoids these bugs by setting the
LD_LIBRARY_PATH when it needs to run test-only binaries like nebraska.

This change also preemptively ensures that in CrOS nebraska.conf is not
dependent on /usr/local paths in ld.so.conf

BUG=b:206814209
TEST=ssh ${DUT} start nebraska

Cq-Depend: chromium:3534330
Change-Id: Ifc9b10d5500f5a33f652461c372a0a4fe1e78c2b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/dev-util/+/3475653
Reviewed-by: Jae Hoon Kim <kimjae@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Tested-by: Henry Barnor <hbarnor@chromium.org>
Reviewed-by: Kyle Shimabukuro <kyleshima@chromium.org>
Commit-Queue: Henry Barnor <hbarnor@chromium.org>
1 file changed