We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e21cadc + 4c13e1a commit 5e91f98Copy full SHA for 5e91f98
part2/stages/Functions/install-main
@@ -923,8 +923,7 @@ is_mounted()
923
}
924
925
# take ownership of TPM if necessary
926
-own_tpm()
927
-{
+own_tpm() {
928
if [ "${TPM_STATE}" != "active" ]; then
929
echo "TPM sate not active, canot own_tpm" >&2
930
return 1
@@ -940,6 +939,15 @@ own_tpm()
940
939
fi
941
942
+ if ! tpm_handles_defined; then
943
+ local err
944
+
945
+ err=$( tpm_create_handles "${own_key}" ) || {
946
+ echo "error creating TPM handles: ${err}" >&2
947
+ return 1
948
+ }
949
+ fi
950
951
generate_policy "${own_key}"
952
953
return 0
0 commit comments