From 34ee85c37c25dce941775ece243d3ea3032279ee Mon Sep 17 00:00:00 2001 From: Kroese Date: Sun, 14 Jan 2024 20:25:24 +0100 Subject: [PATCH] feat: Add TPM emulator --- src/entry.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/entry.sh b/src/entry.sh index e8a0594..7a9560a 100644 --- a/src/entry.sh +++ b/src/entry.sh @@ -24,6 +24,9 @@ if [[ "${DISPLAY,,}" == "web" ]]; then websockify -D --web /usr/share/novnc/ 8006 localhost:5900 2>/dev/null fi +mkdir -p /tmp/emulated_tpm +swtpm socket -t -d --tpmstate dir=/tmp/emulated_tpm --ctrl type=unixio,path=/tmp/emulated_tpm/swtpm-sock --log level=1 --tpm2 + info "Booting Windows using $VERS..." [[ "$DEBUG" == [Yy1]* ]] && set -x