Rename swtpm socket

This commit is contained in:
Martin Wimpress 2021-10-27 22:09:25 +01:00
parent 6e851ff1c8
commit c5efb7d79d
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3
1 changed files with 2 additions and 2 deletions

View File

@ -901,9 +901,9 @@ function vm_boot() {
${USB_PASSTHROUGH})
fi
if [ "${tpm}" == "on" ] && [ -S "${VMDIR}/${VMNAME}.swtpm-sock" ]; then
if [ "${tpm}" == "on" ] && [ -S "${VMDIR}/${VMNAME}-swtpm.sock" ]; then
# shellcheck disable=SC2054
args+=(-chardev socket,id=chrtpm,path="${VMDIR}/${VMNAME}.swtpm-sock"
args+=(-chardev socket,id=chrtpm,path="${VMDIR}/${VMNAME}-swtpm.sock"
-tpmdev emulator,id=tpm0,chardev=chrtpm
-device tpm-tis,tpmdev=tpm0)
fi