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

qemu: extract swtpm #522

Merged
merged 3 commits into from
Apr 11, 2024
Merged

qemu: extract swtpm #522

merged 3 commits into from
Apr 11, 2024

Conversation

jepio
Copy link
Member

@jepio jepio commented Apr 10, 2024

So that kola spawn can support --qemu-tpm for testing.

@jepio jepio requested a review from a team April 10, 2024 10:06
cmd/kola/options.go Outdated Show resolved Hide resolved
@pothos
Copy link
Member

pothos commented Apr 10, 2024

FYI, the qemu script with TPM support can already be downloaded here: https://bincache.flatcar-linux.net/images/amd64/3930.0.0+nightly-20240404-2100/flatcar_production_qemu_uefi.sh

jepio added 2 commits April 11, 2024 10:53
So that it can be added to kola spawn more easily.

Signed-off-by: Jeremi Piotrowski <[email protected]>
Move swtpm creation from the tpm test to the qemu implementation.
This allows it to be reused for various test cases.

Signed-off-by: Jeremi Piotrowski <[email protected]>
@jepio jepio force-pushed the jepio/tpm-refactor branch from fd17331 to 9de7932 Compare April 11, 2024 08:54
Copy link
Member

@pothos pothos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One gofmt run needed before merging

Allow users to create a qemu VM with swtpm through kola spawn. CLI options are
shared between `kola spawn` and `kola run` so add comments informing users that
the option should not be used with `kola run`.

Signed-off-by: Jeremi Piotrowski <[email protected]>
@jepio jepio force-pushed the jepio/tpm-refactor branch from 9de7932 to 613b6e6 Compare April 11, 2024 13:43
@jepio jepio merged commit 346be89 into flatcar-master Apr 11, 2024
3 checks passed
@jepio jepio deleted the jepio/tpm-refactor branch April 11, 2024 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants