Debian Codegraph @

man/systemd-tpm2-generator.xml

raw
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.2/docbookx.dtd" [
5 <!ENTITY % entities SYSTEM "custom-entities.ent" >
6 %entities;
7 ]>
8 <!-- SPDX-License-Identifier: LGPL-2.1-or-later -->
9 <refentry id="systemd-tpm2-generator" conditional='ENABLE_BOOTLOADER'>
10
11 <refentryinfo>
12 <title>systemd-tpm2-generator</title>
13 <productname>systemd</productname>
14 </refentryinfo>
15
16 <refmeta>
17 <refentrytitle>systemd-tpm2-generator</refentrytitle>
18 <manvolnum>8</manvolnum>
19 </refmeta>
20
21 <refnamediv>
22 <refname>systemd-tpm2-generator</refname>
23 <refpurpose>Generator for inserting TPM2 synchronization point in the boot process</refpurpose>
24 </refnamediv>
25
26 <refsynopsisdiv>
27 <para><filename>/usr/lib/systemd/system-generators/systemd-tpm2-generator</filename></para>
28 </refsynopsisdiv>
29
30 <refsect1>
31 <title>Description</title>
32
33 <para><command>systemd-tpm2-generator</command> is a generator that adds a <varname>Wants=</varname>
34 dependency from <filename>sysinit.target</filename> to <filename>tpm2.target</filename> when it detects
35 that the firmware discovered a TPM2 device but the OS kernel so far did
36 not. <filename>tpm2.target</filename> is supposed to act as synchronization point for all services that
37 require TPM2 device access. See
38 <citerefentry><refentrytitle>systemd.special</refentrytitle><manvolnum>7</manvolnum></citerefentry> for
39 details.</para>
40
41 <para>The <option>systemd.tpm2_wait=</option> kernel command line option may be used to override
42 behaviour of the generator. It accepts a boolean value: if true then <filename>tpm2.target</filename>
43 will be added as synchronization point even if the firmware has not detected a TPM2 device. If false, the
44 target will not be inserted even if firmware reported a device but the OS kernel does not expose a device
45 for it yet. The latter might be useful in environments where a suitable TPM2 driver for the available
46 hardware is not available.</para>
47
48 <para>The <option>systemd.tpm2_software_fallback=</option> kernel command line option (which takes a
49 boolean argument, defaulting to false) may be used to enable an automatic software TPM fallback in case a
50 hardware TPM is not detected and
51 <citerefentry><refentrytitle>swtpm</refentrytitle><manvolnum>8</manvolnum></citerefentry> is
52 available. This pulls in the
53 <citerefentry><refentrytitle>systemd-tpm2-swtpm.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>
54 service.</para>
55
56 <para><command>systemd-tpm2-generator</command> implements
57 <citerefentry><refentrytitle>systemd.generator</refentrytitle><manvolnum>7</manvolnum></citerefentry>.</para>
58 </refsect1>
59
60 <refsect1>
61 <title>See Also</title>
62 <para><simplelist type="inline">
63 <member><citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry></member>
64 <member><citerefentry><refentrytitle>systemd.special</refentrytitle><manvolnum>7</manvolnum></citerefentry></member>
65 <member><citerefentry><refentrytitle>kernel-command-line</refentrytitle><manvolnum>7</manvolnum></citerefentry></member>
66 <member><citerefentry><refentrytitle>systemd-tpm2-swtpm.service</refentrytitle><manvolnum>8</manvolnum></citerefentry></member>
67 </simplelist></para>
68 </refsect1>
69 </refentry>