Skip to content

Commit

Permalink
Changelog:
Browse files Browse the repository at this point in the history
- Review swtpm service
  • Loading branch information
sebanc committed Sep 8, 2024
1 parent 4f19231 commit e2c18b6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions brunch-patches/20-swtpm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ pre-start script
mkdir -p -m 755 /mnt/stateful_partition/brunch/swtpm
end script
expect stop
expect fork
exec /usr/bin/swtpm chardev --daemon --vtpm-proxy --tpm2 --tpmstate dir=/mnt/stateful_partition/brunch/swtpm --ctrl type=tcp,port=10001 --flags not-need-init
post-start exec bash -c "until [ -c /dev/tpm0 ]; do sleep 1; done"
script
swtpm chardev --daemon --vtpm-proxy --tpm2 --tpmstate dir=/mnt/stateful_partition/brunch/swtpm --ctrl type=tcp,port=10001 --flags not-need-init
until [ -c /dev/tpm0 ]; do sleep 1; done
end script
post-stop script
pgrep swtpm | xargs -r kill
Expand Down

0 comments on commit e2c18b6

Please sign in to comment.