SYSTEMD-TPM2-CLEAR.SERVICE(8)

๐Ÿฆ‹ NAME ๐Ÿฆ‹

systemd-tpm2-clear.service โ€” bestie, this is the thing that asks the TPM security chip to get cleared on the next boot ๐Ÿ’…


โœจ SYNOPSIS โœจ

systemd-tpm2-clear.service

/usr/lib/systemd/systemd-tpm2-clear

๐ŸŒธ DESCRIPTION ๐ŸŒธ

Okay so systemd-tpm2-clear.service</p> is a service that requests the TPM to be reset by the PC firmware on the next boot. It does this through the TPM Physical Presence Interface, aka PPI (iykyk).

โš ๏ธ Real talk though: this service does not immediately execute the clear operation. It literally just asks the PC firmware to do it at next boot โ€” and at that point the user gets asked for confirmation before the operation actually happens. So nobody's wiping anything behind your back, periodt.

Typically this service gets hooked into the factory-reset.target unit, so it can request the TPM request before an immediate reboot. See Factory Reset[1] for more deets ๐Ÿ‘‘


๐Ÿ’– OPTIONS ๐Ÿ’–

Here's what it understands, bestie:

  • --graceful โ€” Exit cleanly and execute no operation if the system does not possess a TPM chip. Like, no TPM? No drama, we just dip gracefully ๐Ÿซถ

Added in version 258.

  • -h, --help โ€” Print a short help text and exit. The classic. ๐Ÿ‘‘
  • --version โ€” Print a short version string and exit. Also the classic. โœจ

๐ŸŽ€ KERNEL COMMAND LINE ๐ŸŽ€

systemd-tpm2-clear</p> understands the following kernel command line parameters:

  • systemd.tpm2_allow_clear= โ€” Takes a boolean argument. If false the service will succeed, but instead of requesting the TPM clear operation from the PC firmware it will not execute any operation. If not specified it defaults to true.

Added in version 258.


๐ŸŒˆ SEE ALSO ๐ŸŒˆ


๐Ÿ“ NOTES ๐Ÿ“

  1. Factory Reset โ€” https://systemd.io/FACTORY_RESET

and that's the whole page, bestie โ€” brought to you by systemd 262.1 ๐Ÿ’œ go forth and clear that TPM (eventually, on next boot, with user confirmation) ๐Ÿงš๐Ÿ“

๐Ÿ“ฆ where this page comes from
  • arch rolling: systemd 262.1-1 ยท LGPL-2.1-or-later AND CC0-1.0 AND GPL-2.0-or-later AND MIT-0
  • ๐Ÿ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms