pins/tpm2: add support for tpm2-tools 5.X #257
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
A release candidate for tpm2-tools 5.0 has been tagged. Since we explicitly check the major version of the tools (to support the incompatible versions 3.X and 4.X), the allowed version range needs to be expanded.
tpm2-tools 5.0 consolidates all tools into a single busybox-style binary, so the preferred way to invoke the commands would be e.g.
tpm2 createprimary
instead oftpm2_createprimary
. However, compatibility symlinkstpm2_*
→tpm2
are installed by default, so we keep the old syntax for tpm2-tools 5.0 to avoid creating another special case, since the option syntax has not changed (it should be stable since version 4).tpm2-tools 3.X is deprecated, but unfortunately still packaged by a few Linux distributions, so keep supporting it for now at least.