Skip to content

Instantly share code, notes, and snippets.

View jumpyvi's full-sized avatar
🦆

JumpyVi jumpyvi

🦆
View GitHub Profile
@jumpyvi
jumpyvi / tpm-unlock.sh
Created November 5, 2024 21:35
TPM-Autounlock (fedora)
#!/bin/bash
## setup auto-unlock LUKS2 encrypted root on Fedora/Silverblue/maybe others
## This is a backup version from Universal Blue
set -eou pipefail
[ "$UID" -eq 0 ] || { echo "This script must be run as root."; exit 1;}
echo "WARNING: Do NOT use this if your CPU is vulnerable to faulTPM!"
echo "All AMD Zen2 and Zen3 Processors are known to be affected!"
echo "All AMD Zen1 processors are also likely affected, with Zen4 unknown!"