| 1 |
<?xml version="1.0"?> |
| 2 |
<!--*-nxml-*--> |
| 3 |
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" |
| 4 |
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"> |
| 5 |
<!-- SPDX-License-Identifier: LGPL-2.1-or-later --> |
| 6 |
<refentry id="systemd-tpm2-clear.service" conditional='ENABLE_BOOTLOADER' |
| 7 |
xmlns:xi="http://www.w3.org/2001/XInclude"> |
| 8 |
|
| 9 |
<refentryinfo> |
| 10 |
<title>systemd-tpm2-clear.service</title> |
| 11 |
<productname>systemd</productname> |
| 12 |
</refentryinfo> |
| 13 |
|
| 14 |
<refmeta> |
| 15 |
<refentrytitle>systemd-tpm2-clear.service</refentrytitle> |
| 16 |
<manvolnum>8</manvolnum> |
| 17 |
</refmeta> |
| 18 |
|
| 19 |
<refnamediv> |
| 20 |
<refname>systemd-tpm2-clear.service</refname> |
| 21 |
<refpurpose>Request that the TPM security chip is cleared on next boot</refpurpose> |
| 22 |
</refnamediv> |
| 23 |
|
| 24 |
<refsynopsisdiv> |
| 25 |
<para><filename>systemd-tpm2-clear.service</filename></para> |
| 26 |
<para><filename>/usr/lib/systemd/systemd-tpm2-clear</filename></para> |
| 27 |
</refsynopsisdiv> |
| 28 |
|
| 29 |
<refsect1> |
| 30 |
<title>Description</title> |
| 31 |
|
| 32 |
<para><filename>systemd-tpm2-clear.service</filename> is a service that requests that the TPM is reset by |
| 33 |
the PC firmware on the next boot. It makes use of the TPM Physical Presence Interface (PPI). Note that |
| 34 |
this service does not immediately execute the clear operation, but simply asks the PC firmware to execute |
| 35 |
it at next boot, where the user will be asked for confirmation before the operation is done.</para> |
| 36 |
|
| 37 |
<para><filename>systemd-tpm2-clear.service</filename> is typically hooked into the |
| 38 |
<filename>factory-reset.target</filename> unit in order to request the TPM request before an immediate |
| 39 |
reboot. See <ulink url="https://systemd.io/FACTORY_RESET">Factory Reset</ulink> for more |
| 40 |
information.</para> |
| 41 |
</refsect1> |
| 42 |
|
| 43 |
<refsect1> |
| 44 |
<title>Options</title> |
| 45 |
|
| 46 |
<para>The following options are understood:</para> |
| 47 |
|
| 48 |
<variablelist> |
| 49 |
<varlistentry> |
| 50 |
<term><option>--graceful</option></term> |
| 51 |
|
| 52 |
<listitem><para>Exit cleanly and execute no operation if the system does not possess a TPM |
| 53 |
chip.</para> |
| 54 |
|
| 55 |
<xi:include href="version-info.xml" xpointer="v258"/></listitem> |
| 56 |
</varlistentry> |
| 57 |
|
| 58 |
<xi:include href="standard-options.xml" xpointer="help" /> |
| 59 |
<xi:include href="standard-options.xml" xpointer="version" /> |
| 60 |
</variablelist> |
| 61 |
</refsect1> |
| 62 |
|
| 63 |
<refsect1> |
| 64 |
<title>Kernel Command Line</title> |
| 65 |
|
| 66 |
<para><filename>systemd-tpm2-clear</filename> understands the following kernel command line |
| 67 |
parameters:</para> |
| 68 |
|
| 69 |
<variablelist class='kernel-commandline-options'> |
| 70 |
<varlistentry> |
| 71 |
<term><varname>systemd.tpm2_allow_clear=</varname></term> |
| 72 |
|
| 73 |
<listitem><para>Takes a boolean argument. If false the service will succeed, but instead of requesting |
| 74 |
the TPM clear operation from the PC firmware it will not execute any operation. If not specified |
| 75 |
defaults to true.</para> |
| 76 |
|
| 77 |
<xi:include href="version-info.xml" xpointer="v258"/></listitem> |
| 78 |
</varlistentry> |
| 79 |
</variablelist> |
| 80 |
</refsect1> |
| 81 |
|
| 82 |
<refsect1> |
| 83 |
<title>See Also</title> |
| 84 |
<para><simplelist type="inline"> |
| 85 |
<member><citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry></member> |
| 86 |
<member><citerefentry><refentrytitle>systemd-tpm2-setup.service</refentrytitle><manvolnum>8</manvolnum></citerefentry></member> |
| 87 |
<member><citerefentry><refentrytitle>systemd-factory-reset-request.service</refentrytitle><manvolnum>8</manvolnum></citerefentry></member> |
| 88 |
</simplelist></para> |
| 89 |
</refsect1> |
| 90 |
</refentry> |