Loading src/boot.sh +16 −18 Original line number Diff line number Diff line Loading @@ -89,14 +89,11 @@ esac if [[ "$TPM" == [Yy1]* ]]; then rm -rf /run/shm/tpm rm -f /var/run/tpm.pid mkdir -p /run/shm/tpm chmod 755 /run/shm/tpm 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 if ! swtpm socket -t -d --tpmstate "backend-uri=file://$STORAGE/${BOOT_MODE,,}.tpm" --ctrl type=unixio,path=/run/swtpm-sock --pid file=/var/run/tpm.pid --tpm2; then error "Failed to start TPM emulator, reason: $?" else for (( i = 1; i < 20; i++ )); do Loading @@ -116,6 +113,7 @@ if [[ "$TPM" == [Yy1]* ]]; then BOOT_OPTS+=" -chardev socket,id=chrtpm,path=/run/swtpm-sock" BOOT_OPTS+=" -tpmdev emulator,id=tpm0,chardev=chrtpm -device tpm-tis,tpmdev=tpm0" fi fi fi Loading Loading
src/boot.sh +16 −18 Original line number Diff line number Diff line Loading @@ -89,14 +89,11 @@ esac if [[ "$TPM" == [Yy1]* ]]; then rm -rf /run/shm/tpm rm -f /var/run/tpm.pid mkdir -p /run/shm/tpm chmod 755 /run/shm/tpm 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 if ! swtpm socket -t -d --tpmstate "backend-uri=file://$STORAGE/${BOOT_MODE,,}.tpm" --ctrl type=unixio,path=/run/swtpm-sock --pid file=/var/run/tpm.pid --tpm2; then error "Failed to start TPM emulator, reason: $?" else for (( i = 1; i < 20; i++ )); do Loading @@ -116,6 +113,7 @@ if [[ "$TPM" == [Yy1]* ]]; then BOOT_OPTS+=" -chardev socket,id=chrtpm,path=/run/swtpm-sock" BOOT_OPTS+=" -tpmdev emulator,id=tpm0,chardev=chrtpm -device tpm-tis,tpmdev=tpm0" fi fi fi Loading