Debian Codegraph @

man/systemd.image-filter.xml

raw
1 <?xml version='1.0'?> <!--*-nxml-*-->
2 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
4 <!-- SPDX-License-Identifier: LGPL-2.1-or-later -->
5
6 <refentry id="systemd.image-filter">
7
8 <refentryinfo>
9 <title>systemd.image-filter</title>
10 <productname>systemd</productname>
11 </refentryinfo>
12
13 <refmeta>
14 <refentrytitle>systemd.image-filter</refentrytitle>
15 <manvolnum>7</manvolnum>
16 </refmeta>
17
18 <refnamediv>
19 <refname>systemd.image-filter</refname>
20 <refpurpose>Disk Image Dissection Filter</refpurpose>
21 </refnamediv>
22
23 <refsect1>
24 <title>Description</title>
25
26 <para>In systemd, whenever a disk image (DDI) implementing the <ulink
27 url="https://uapi-group.org/specifications/specs/discoverable_partitions_specification">UAPI.2 Discoverable
28 Partitions Specification</ulink> is activated, a filter may be specified controlling which partitions to
29 consider for mounting. Such a disk image dissection filter is a string that contains per-partition-type
30 patterns, separated by colons (<literal>:</literal>). The individual rules consist of a partition
31 identifier, an equal sign (<literal>=</literal>), and a shell globbing pattern applied to the GPT label
32 string of the partition. See <citerefentry
33 project='man-pages'><refentrytitle>glob</refentrytitle><manvolnum>7</manvolnum></citerefentry> for
34 details on shell globbing.</para>
35
36 <para>The partition identifiers currently defined are: <option>root</option>, <option>usr</option>,
37 <option>home</option>, <option>srv</option>, <option>esp</option>, <option>xbootldr</option>,
38 <option>swap</option>, <option>root-verity</option>, <option>root-verity-sig</option>,
39 <option>usr-verity</option>, <option>usr-verity-sig</option>, <option>tmp</option>,
40 <option>var</option>. These identifiers match the relevant partition types in the Discoverable Partitions
41 Specification, but are agnostic to CPU architectures.</para>
42 </refsect1>
43
44 <refsect1>
45 <title>Use</title>
46
47 <para>Various systemd components that support operating with disk images support a
48 <option>--image-filter=</option> command line option to specify the image filter to use. If no filter is
49 specified all partitions in partition table are considered and no per-label filtering is applied (except
50 that partitions with the <literal>_empty</literal> label are always ignored).</para>
51
52 <para>For the host root file system image itself
53 <citerefentry><refentrytitle>systemd-gpt-auto-generator</refentrytitle><manvolnum>8</manvolnum></citerefentry>
54 is responsible for processing the GPT partition table and making use of the included discoverable
55 partitions. It accepts an image filter via the kernel command line option
56 <option>systemd.image_filter=</option>.</para>
57 </refsect1>
58
59 <refsect1>
60 <title>Examples</title>
61
62 <para>The following image filter string dictates that for the root file system partition only partitions
63 shall be considered whose label begins with <literal>ParticleOS-</literal>. For the
64 <filename>/usr/</filename> partition the precise label <literal>ParticleOS_47110815</literal> is
65 required.</para>
66
67 <programlisting>root=ParticleOS-*:usr=ParticleOS_47110815</programlisting>
68 </refsect1>
69
70 <refsect1>
71 <title>See Also</title>
72 <para><simplelist type="inline">
73 <member><citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry></member>
74 <member><citerefentry><refentrytitle>systemd-dissect</refentrytitle><manvolnum>1</manvolnum></citerefentry></member>
75 <member><citerefentry><refentrytitle>systemd-gpt-auto-generator</refentrytitle><manvolnum>8</manvolnum></citerefentry></member>
76 <member><citerefentry><refentrytitle>systemd.image-policy</refentrytitle><manvolnum>7</manvolnum></citerefentry></member>
77 </simplelist></para>
78 </refsect1>
79
80 </refentry>