TPM2 test cases failed to load share libraries in checkbox-snappy + checkbox18 environment
Bug #1824454 reported by
Robert Liu
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Checkbox Snappy |
Fix Released
|
High
|
Sylvain Pineau |
Bug Description
The TPM test cases worked with checkbox-snappy before (couple days ago).
After upgraded to the new checkbox-snappy + checkbox18, the TPM2 test cases failed.
The error showed libtcti-socket.so.0 is not found.
The output log:
tpm2_takeownership: error while loading shared libraries: libtcti-
[1;33m\
tpm2_listpersis
[1;31mtest_
Related branches
~sylvain-pineau/checkbox-snappy:fix-1824454
- Sylvain Pineau (community): Approve
-
Diff: 12 lines (+1/-0)1 file modifiedlaunchers/wrapper_common (+1/-0)
Changed in checkbox-ng: | |
assignee: | nobody → Sylvain Pineau (sylvain-pineau) |
status: | New → In Progress |
affects: | checkbox-ng → checkbox-snappy |
Changed in checkbox-snappy: | |
importance: | Undecided → High |
Changed in checkbox-snappy: | |
status: | Triaged → In Progress |
status: | In Progress → Fix Committed |
Changed in checkbox-snappy: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Weird that all tpm2 libs are not in /lib/x86_ 64-linux- gnu/:
/snap/checkbox1 8/current/ lib$ ls socket. so.0@ udev/ socket. so.0.0. 0* x86_64-linux-gnu/ device. so.0@ modprobe.d/ device. so.0.0. 0* pkgconfig/
./ libsapi.so.0@ libtcti-socket.a python3.6/
../ libsapi.so.0.0.0* libtcti-socket.so@ systemd/
fwts/ libtcti-device.a libtcti-
hdparm/ libtcti-device.so@ libtcti-
libsapi.a libtcti-
libsapi.so@ libtcti-
The reason why we start to fail the tests since the move to checkbox18+ checkbox- snappy is that we don't include /lib in wrapper_common LD_LIBRARY_PATH additional paths:
https:/ /git.launchpad. net/checkbox- snappy/ tree/launchers/ wrapper_ common# n55
append_dir LD_LIBRARY_PATH $RUNTIME/lib/$ARCH usr/lib/ $ARCH
append_dir LD_LIBRARY_PATH $RUNTIME/
append_dir LD_LIBRARY_PATH $RUNTIME/lib/fwts
So that's a fix for checkbox-snappy only (in wrapper common) and probably just for the 18 track though it would be good to port the same fix to series16 even if so far nothing is in /lib:
/snap/checkbox/ current/ lib$ ls
./ ../ fwts/ hdparm/ modprobe.d/ python3.5/ systemd/ udev/ x86_64-linux-gnu/