This commit is contained in:
parent
b7184ba705
commit
601d32bc92
2 changed files with 19 additions and 19 deletions
11
src/root/tpm-enroll.service
Normal file
11
src/root/tpm-enroll.service
Normal file
|
@ -0,0 +1,11 @@
|
|||
[Unit]
|
||||
Description=TPM Enrollment Service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=systemd-cryptenroll --tpm2-device=auto <ROOT> --tpm2-pcrs=7 && rm /etc/systemd/system/tpm-enroll.service
|
||||
SetCredential=cryptenroll.passphrase:<PASSPHRASE>
|
||||
User=root
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Add table
Add a link
Reference in a new issue