Skip to content

Commit f63ae36

Browse files
author
the Mulhern
committed
Use TMT configuration to set up TPM2
Signed-off-by: the Mulhern <[email protected]>
1 parent 36682a5 commit f63ae36

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

plans/all.fmf

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ adjust:
66
enabled: false
77

88
prepare:
9-
- name: Start TPM2 emulation kernel module
10-
how: shell
11-
script: modprobe tpm_vtpm_proxy
129
- name: Install packages
1310
how: install
1411
package:
@@ -23,14 +20,8 @@ prepare:
2320
- ncurses
2421
- rust
2522
- systemd
26-
- swtpm
27-
- swtpm-tools
28-
- tpm2-tools
2923
- systemd-devel
3024
- tang
31-
- name: Start TPM2 emulation
32-
how: shell
33-
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 &
3425
- name: Start tang server
3526
how: shell
3627
script: systemctl enable tangd.socket --now
@@ -48,6 +39,11 @@ execute:
4839
how: tmt
4940
exit-first: false
5041

42+
provision:
43+
hardware:
44+
tpm:
45+
version: '2.0'
46+
5147
/python:
5248
prepare+:
5349
- name: Make link for legacy pool utility

0 commit comments

Comments
 (0)