From 24e6dc34c5a2dbbe881767ef67b81bed168e01f7 Mon Sep 17 00:00:00 2001 From: the Mulhern Date: Fri, 1 Aug 2025 12:03:56 -0400 Subject: [PATCH] Use TMT configuration to set up TPM2 Signed-off-by: the Mulhern --- plans/all.fmf | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/plans/all.fmf b/plans/all.fmf index be389cc0d0..cbf916dd60 100644 --- a/plans/all.fmf +++ b/plans/all.fmf @@ -6,9 +6,6 @@ adjust: enabled: false prepare: - - name: Start TPM2 emulation kernel module - how: shell - script: modprobe tpm_vtpm_proxy - name: Install packages how: install package: @@ -23,14 +20,8 @@ prepare: - ncurses - rust - systemd - - swtpm - - swtpm-tools - - tpm2-tools - systemd-devel - tang - - name: Start TPM2 emulation - how: shell - script: mkdir /var/tmp/swtpm; swtpm_setup --tpm-state /var/tmp/swtpm --tpm2; swtpm chardev --vtpm-proxy --tpmstate dir=/var/tmp/swtpm --tpm2 &> /var/log/swtpm & - name: Start tang server how: shell script: systemctl enable tangd.socket --now @@ -48,6 +39,11 @@ execute: how: tmt exit-first: false +provision: + hardware: + tpm: + version: '2.0' + /python: prepare+: - name: Make link for legacy pool utility