fix: Move TPM init

This commit is contained in:
Kroese 2024-01-18 10:11:29 +01:00 committed by GitHub
parent 7a8e78519c
commit f723174f37
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,9 +5,6 @@ set -Eeuo pipefail
: "${EXTERNAL:="N"}"
: "${VERSION:="win11x64"}"
ARGUMENTS="-chardev socket,id=chrtpm,path=/dev/shm/emulated_tpm/swtpm-sock $ARGUMENTS"
ARGUMENTS="-tpmdev emulator,id=tpm0,chardev=chrtpm -device tpm-tis,tpmdev=tpm0 $ARGUMENTS"
[[ "${VERSION,,}" == "http"* ]] && EXTERNAL="Y"
[[ "${VERSION,,}" == "11" ]] && VERSION="win11x64"