1
0
鏡像自 https://github.com/dockur/windows.git 已同步 2026-06-12 21:29:36 +08:00

feat: Move TPM emulator (#49)

此提交包含在:
Kroese
2024-01-18 10:32:39 +01:00
提交者 GitHub
父節點 4a8f55ec58
當前提交 5a56b717c4
共有 3 個檔案被更改,包括 1 行新增9 行删除
+1 -2
查看文件
@@ -7,9 +7,8 @@ ARG DEBCONF_NONINTERACTIVE_SEEN "true"
RUN apt-get update \ RUN apt-get update \
&& apt-get --no-install-recommends -y install \ && apt-get --no-install-recommends -y install \
curl \ curl \
swtpm \ 7zip \
wimtools \ wimtools \
p7zip-full \
genisoimage \ genisoimage \
&& apt-get clean \ && apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
-4
查看文件
@@ -23,10 +23,6 @@ if [[ "${DISPLAY,,}" == "web" ]]; then
nginx -e stderr nginx -e stderr
fi fi
mkdir -p /dev/shm/emulated_tpm
swtpm socket -t -d --tpmstate dir=/dev/shm/emulated_tpm --ctrl \
type=unixio,path=/dev/shm/emulated_tpm/swtpm-sock --log level=1 --tpm2
info "Booting Windows using $VERS..." info "Booting Windows using $VERS..."
[[ "$DEBUG" == [Yy1]* ]] && set -x [[ "$DEBUG" == [Yy1]* ]] && set -x
-3
查看文件
@@ -5,9 +5,6 @@ set -Eeuo pipefail
: "${EXTERNAL:="N"}" : "${EXTERNAL:="N"}"
: "${VERSION:="win11x64"}" : "${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,,}" == "http"* ]] && EXTERNAL="Y"
[[ "${VERSION,,}" == "11" ]] && VERSION="win11x64" [[ "${VERSION,,}" == "11" ]] && VERSION="win11x64"