FDECTL(8)
π fdectl(8) β the system administration utilities glow-up
okay bestie, so this is fdectl, the manual page for the Tool for controlling Full Disk Encryption, and honestly? she's that girl. let's get into it β¨
πΈ SYNOPSIS πΈ
fdectl [global-options] command [cmd-options]
that's it. global options first, then a command, then that command's own options. simple. iconic. π
π¦ DESCRIPTION π¦
okay so the whole point of this tool is to make the TPM seal/unseal process less of a nightmare for system administrators and installers. like, streamline it. no cap. π
to pull that off, it leans heavily on pcr-oracle to forecast the relevant TPM Platform Configuration Registers (PCRs) values at the exact moment the boot loader needs to unseal the key. that's the whole vibe.
the primary configuration file for this tool lives at /etc/sysconfig/fde-tools. remember her. π«Ά
β Global options β
--helpβ Display this message.--versionβ Print program version.--deviceβ Specify the partition to operate on. Can be a device name or a mount point. Defaults to the current root device.--bootloaderβ Specify the boot loader being used [grub2].--uefi-boot-dirβ Specify the location of the UEFI ESP [/boot/efi].--use-dialogβ Use thedialog(1)utility to interact with the user.--keyfileβ Specify the path to a LUKS key for use withtpm-enable.--passwordβ Specify the LUKS recovery password. Should be used by the installer only. π--passfileβ Specify the path to a LUKS recovery password file.
π Commands π
helpβ display this messagepasswdβ change the password protecting the partitionadd-secondary-passwordβ protect partition with a passphrase and use that to unlock on next bootremove-secondary-passwordβ remove passphrase installed byadd-secondary-passwordregenerate-keyβ regenerate the random key to replace the old key and seal the new keytpm-presentβ check whether a TPM2 chip is present and workingtpm-enableβ enable TPM protectiontpm-disableβ disable TPM protectiontpm-wipeβ wipe out the keyslot for the sealed keytpm-authorizeβ update the authorized pcr policy in the sealed keytpm-inspectβ check the pcr policy of the sealed key
π₯ EXAMPLES π₯
π§ Testing for the presence of a TPM
fdectl tpm-present
This will return an exit status of 0 (success) or 1 (absent). yes bestie, a little vibe check for your TPM2 chip π
π Installer era: sealing a secondary key
If the users asks for the LUKS partition to be protected by the TPM, the installer needs to create a secondary key and pass this to the installed system, like this:
fdectl add-secondary-key --keyfile /root/.root.key
This will prompt for the recovery password that is able to unlock the LUKS partition. Alternatively, you can pass the password on the command like using the --password option. (that's "command line" energy, but we're quoting the page's vibes, okurrr)
β¨ First boot era: turning the TPM protection ON
After booting into the installed system, TPM protection needs to be enabled using this command:
fdectl tpm-enable --keyfile /root/.root.keyfile
This will create a _new_ LUKS key, which is then sealed against the predicted TPM state, and installed in the UEFI System Partition. The old key, which was created by the installer, is removed.
Note, when usingfdectl add-secondary-passwordas described above,tpm-enablewill also have to remove this well-known password from the LUKS header. π«Ά
Usually, the tpm-enable command is invoked automatically on first boot via the fde-tools.service unit file. main character energy: she just does it herself. π
π SEE ALSO π
and that's the whole page, bestie β go forth and encrypt your whole disk, fr fr π¦π
sign-off cuteness: this page is from fde.sh 0.7.9, dated September 2026. slay. π
π¦ where this page comes from
- opensuse-leap 16.0: fde-tools 0.7.9-160000.1.1 Β· GPL-2.0-only
- opensuse-leap 16.0: fde-tools 0.7.9-160000.1.1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms