Unverified Commit 39a84b82 authored by Kroese's avatar Kroese Committed by GitHub
Browse files

fix: Check swtpm (#390)

parent 45310252
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -68,7 +68,9 @@ if [[ "${BOOT_MODE,,}" != "legacy" ]] && [[ "${BOOT_MODE,,}" != "windows_legacy"
      mkdir -p /run/shm/tpm
      chmod 755 /run/shm/tpm

      swtpm socket -t -d --tpmstate dir=/run/shm/tpm --ctrl type=unixio,path=/run/swtpm-sock --pid file=/var/run/tpm.pid --tpm2
      if ! swtpm socket -t -d --tpmstate dir=/run/shm/tpm --ctrl type=unixio,path=/run/swtpm-sock --pid file=/var/run/tpm.pid --tpm2; then
        error "Failed to start TPM emulator, reason: $?" && exit 19
      fi

      for (( i = 1; i < 20; i++ )); do