Skip to content

Instantly share code, notes, and snippets.

@ryanfaircloth
Created December 3, 2023 15:46
Show Gist options
  • Save ryanfaircloth/8fc005a12b5093f96142d4c7862baf7d to your computer and use it in GitHub Desktop.
Save ryanfaircloth/8fc005a12b5093f96142d4c7862baf7d to your computer and use it in GitHub Desktop.
Setup TPM2 autounlock
#Install what we need
sudo apt-get install clevis clevis-luks clevis-systemd clevis-tpm2 clevis-initramfs
# bind
echo <my password> | sudo clevis luks bind -d /dev/nvme0n1p3 tpm2 '{ "pcr_bank":"sha256", "pcr_ids": "7,11" }'
# confirm
sudo clevis luks list -d /dev/nvme0n1p3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment