GRUB-PROTECT(1)
π GRUB-PROTECT(1) β bestie edition
okay so this is grub-protect, a User Commands girlie from the GRUB2 fam β she's here to tuck your disk key in safe with a key protector, and honestly? she ate. β¨
πΈ NAME πΈ
grub-protect β protect a disk key with a key protector
π¦ SYNOPSIS π¦
grub-protect [OPTION...]
π DESCRIPTION π
grub-protect helps you protect a disk encryption key with a specified key protector. That's literally her whole job and she's obsessed with it.
The vibe: you've got a cleartext key lying around (rude, unsafe), and you use a GRUB key protector so that GRUB can go retrieve that key during boot and unlock your fully-encrypted disks automatically. No cap, that's the whole slay. π₯
β¨ OPTIONS β¨
Honestly there are a lot of these, so buckle up bestie, we're going through every single one. π
-a,--action=add|removeβ add a key protector to a key, or remove one from it. Pick your character arc.-p,--protector=tpm2β set which key protector to use. rn the only one on the roster istpm2(that's just how it is, don't come for her).--tpm2-asymmetric=TYPEβ set the type of SRK. Your options are RSA (RSA2048),RSA3072,RSA4096, and ECC (ECC_NIST_P256). (default:ECC) π--tpm2-bank=ALGβ set the bank of PCRs used to authorize key release. Choices:SHA1,SHA256,SHA384, orSHA512. (default:SHA256)--tpm2-device=FILEβ set the path to the TPM2 device. (default:/dev/tpm0)--tpm2-evictβ evict a previously persisted SRK from the TPM, if there even is one. bye felicia π--tpm2-keyfile=FILEβ set the path to the file that contains the cleartext key you wanna protect.--tpm2-nvindex=NUMβ store the sealed key in a persistent or NV index handle. fancy π--tpm2-outfile=FILEβ set the path to the file that will contain the key after sealing. heads up: it must be accessible to GRUB during boot, so don't hide it somewhere GRUB can't reach, bestie π--tpm2-pcrs=0[,1]...β set a comma-separated list of PCRs used to authorize key release, e.g.'7,11'. (default:7)
β οΈ okay this one's important, listen up: please be aware that PCR 0~7 are used by the firmware, and the measurement result may change after a firmware update (for baremetal systems) or a package (OVMF/SLOF) update in the VM host. That may lead to the failure of key unsealing. π so yeah, key goes bye-bye. you've been warned, fr fr.
--tpm2-srk=NUMβ set the SRK handle, if the SRK is to be made persistent.--tpm2keyβ use the TPM 2.0 Key File format. ποΈ-?,--helpβ give this help list--usageβ give a short usage message-V,--versionβ print program version
π«Ά little note from the original: mandatory or optional arguments to long options are also mandatory or optional for any corresponding short options. iykyk.
π REPORTING BUGS π
Found a bug? not the vibe, but ok β report it to <bug-grub@gnu.org>.
π SEE ALSO π
The full documentation for grub-protect is maintained as a Texinfo manual. If the info and grub-protect programs are properly installed at your site, the command
info grub-protect
should give you access to the complete manual. slay π
GRUB2 2.12 π September 2026 β and that's the whole page bestie, mwah π π¦β¨
π¦ where this page comes from
- opensuse-leap 16.0: grub2-common 2.12-160000.8.1 Β· GPL-3.0-or-later
- opensuse-leap 16.0: grub2-common 2.12-160000.8.1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms