Skip to content

Commit

Permalink
Allow testing tpm1 pin in CI build (CentOS-specific)
Browse files Browse the repository at this point in the history
TPM 1.2 SW tests on CentOS 9+ are not supported by RedHat (see [1]), but
packages are installed and tests detect this.

CentOS 10 EPEL does not yet exist, so required packages cannot be
installed.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1990153

Signed-off-by: Oldřich Jedlička <[email protected]>
  • Loading branch information
oldium committed Oct 26, 2024
1 parent a57d51d commit e104379
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/install-dependencies
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,18 @@ debian:*|ubuntu:*)
yum install -y yum-utils
yum config-manager -y --set-enabled crb || yum config-manager \
-y --set-enabled powertools || :
yum -y install epel-release
yum -y install epel-release epel-next-release
yum -y --allowerasing install ${COMMON}
yum -y install pkgconfig openssl-devel openssl zlib-devel \
jansson-devel findutils gcc libjose-devel luksmeta libluksmeta-devel \
audit-libs-devel tpm2-tools desktop-file-utils cracklib-dicts opensc \
pcsc-lite softhsm
pcsc-lite softhsm swtpm-tools
# EPEL-specific packages, EPEL 10 does not exist yet
case "${DISTRO}" in
*centos:*-development) ;;
*) yum -y install tpm-tools trousers
;;
esac
sed -i 's|>=1\.0\.2|>=1\.0\.1|' meson.build
;;
esac
Expand Down

0 comments on commit e104379

Please sign in to comment.