Skip to content

Commit

Permalink
Allow testing tpm1 pin in CI build
Browse files Browse the repository at this point in the history
CentOS 9+ is intentionally omitted, because the TPM 1.2 has been removed
from swtpm, see [1].

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1990153
  • Loading branch information
oldium committed Oct 1, 2024
1 parent f3acb44 commit ccd4461
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/install-dependencies
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ debian:*|ubuntu:*)
while ! apt-get -y install ${COMMON} \
build-essential pkg-config libssl-dev libjansson-dev libjose-dev \
luksmeta libluksmeta-dev libpwquality-tools libglib2.0-dev \
libudisks2-dev libaudit-dev systemd opensc pcscd libsofthsm2-dev; do
libudisks2-dev libaudit-dev systemd opensc pcscd libsofthsm2-dev \
swtpm-tools tpm-tools; do
sleep 5
done
;;
Expand All @@ -33,7 +34,7 @@ debian:*|ubuntu:*)
dnf -y clean all
dnf -y --setopt=deltarpm=0 update
dnf -y install dnf-utils jq socat cryptsetup keyutils cracklib-dicts lsof \
opensc pcsc-lite softhsm
opensc pcsc-lite softhsm swtpm-tools tpm-tools trousers
command -v dnf5 && dnf5 -y install dnf5-command\(builddep\) \
|| dnf -y install dnf-command\(builddep\)
dnf -y builddep clevis
Expand All @@ -50,7 +51,7 @@ debian:*|ubuntu:*)
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 tpm-tools trousers
sed -i 's|>=1\.0\.2|>=1\.0\.1|' meson.build
;;
esac
Expand Down

0 comments on commit ccd4461

Please sign in to comment.