Skip to content

Commit

Permalink
Merge pull request #3617 from mulkieran/require-tpm2
Browse files Browse the repository at this point in the history
Require emulated TPM2 for Stratis tests
  • Loading branch information
mulkieran committed Jun 17, 2024
2 parents 0a78384 + 50984c2 commit 8a838b0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions plans/all.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,20 @@ adjust:
enabled: false

prepare:
- name: Start TPM2 emulation kernel module
how: shell
script: modprobe tpm_vtpm_proxy
- name: Install packages
how: install
package:
- tang
- systemd
- swtpm
- swtpm-tools
- tpm2-tools
- 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
Expand Down

0 comments on commit 8a838b0

Please sign in to comment.