Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Require emulated TPM2 for Stratis tests #3617

Merged
merged 1 commit into from
Jun 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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