nsacyber / HIRS

Trusted Computing based services supporting TPM provisioning and supply chain validation concepts. #nsacyber
Other
177 stars 57 forks source link

hirs-provisioner-tpm2 not on path after installation. #78

Closed apldev4 closed 5 years ago

apldev4 commented 5 years ago

hirs-provisioner-tpm2 not on path after installation. Something is going wrong in the RPM installation.

apldev3 commented 5 years ago

To add more description to the issue, the main problem is the rpm-post-install.sh is trying to link libcurl.so to /usr/lib64 on systems where that link already exists. Naturally, this fails and due to the set -e at the top of the post install script, the whole script fails and dies on the spot rather than linking the hirs-provisioner-tpm2 and tpm_aca_provision binaries to the proper directories.

apldev4 commented 5 years ago

If libcurl package is installed, the link we are trying to create would be there anyway because the libcurl package runs ldconfig as part of its post install step.

apldev3 commented 5 years ago

Removing the link created an issue whereby the Docker image was not finding the libcurl.so file. This seems to be resolved by updating the package requirements to include the developer libraries of libcurl rather than just libcurl itself.

apldev3 commented 5 years ago

The build guides will need updated after the MR for this goes through.

apldev3 commented 5 years ago

The guides have been updated.