-
Notifications
You must be signed in to change notification settings - Fork 0
Arch Linux
Nikhil Prabhu edited this page Mar 27, 2026
·
8 revisions
- Install the necessary tools:
sudo pacman -S tpm2-tss tpm2-tools - Identify the LUKS partition (the one with
FSTYPEascrypto), and note down itsNAMEandUUID:lsblk -f - Enroll the TPM keyslot:
sudo systemd-cryptenroll --tpm2-device=auto --tpm2-pcrs=7 /dev/<NAME> - Open
/etc/mkinitcpio.conf, and fine theHOOKS=(...)line. Within the braces, replaceudevwithsystemd, andencryptwithsd-encrypt. - Open
/etc/default/grub, and find the lineGRUB_CMDLINE_LINUX="...". Look forcryptdevice=<UUID>=...:root, and replace it withrd.luks.name=<UUID>=root root=/dev/mapper/root - Regenerate and reboot:
sudo mkinitcpio -P sudo grub-mkconfig -o /boot/grub/grub.cfg