From d48f882dc7a61cccf59c40584bdb9ed4a775f516 Mon Sep 17 00:00:00 2001 From: qoijjj <129108030+qoijjj@users.noreply.github.com> Date: Sat, 10 Aug 2024 12:05:37 -0700 Subject: [PATCH] feat: add warning about faulTPM --- build/ublue-os-luks/luks-enable-tpm2-autounlock | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build/ublue-os-luks/luks-enable-tpm2-autounlock b/build/ublue-os-luks/luks-enable-tpm2-autounlock index 0e232c96..44c776da 100755 --- a/build/ublue-os-luks/luks-enable-tpm2-autounlock +++ b/build/ublue-os-luks/luks-enable-tpm2-autounlock @@ -4,6 +4,11 @@ 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!" +echo "If you have an AMD CPU, you likely shouldn't use this!" +echo "----------------------------------------------------------------------------" echo "This script uses systemd-cryptenroll to enable TPM2 auto-unlock." echo "You can review systemd-cryptenroll's manpage for more information." echo "This script will modify your system."