Reduce wait for swtpm initialisation

This commit is contained in:
Martin Wimpress 2021-10-25 15:57:15 +01:00
parent 835ce6bce5
commit 5c0a7885c9
No known key found for this signature in database
GPG key ID: 61DF940515E06DA3

View file

@ -784,7 +784,7 @@ function vm_boot() {
echo "${SWTPM} ${tpm_args[*]} &" >> "${VMDIR}/${VMNAME}.sh" echo "${SWTPM} ${tpm_args[*]} &" >> "${VMDIR}/${VMNAME}.sh"
${SWTPM} "${tpm_args[@]}" >> "${VMDIR}/${VMNAME}.log" & ${SWTPM} "${tpm_args[@]}" >> "${VMDIR}/${VMNAME}.log" &
echo " - TPM: ${VMDIR}/${VMNAME}.swtpm-sock (${!})" echo " - TPM: ${VMDIR}/${VMNAME}.swtpm-sock (${!})"
sleep 1 sleep 0.25
fi fi
# Boot the VM # Boot the VM