Debian Codegraph @

man/systemd-gpt-auto-generator.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-gpt-auto-generator" conditional='HAVE_BLKID'
7 xmlns:xi="http://www.w3.org/2001/XInclude">
8
9 <refentryinfo>
10 <title>systemd-gpt-auto-generator</title>
11 <productname>systemd</productname>
12 </refentryinfo>
13
14 <refmeta>
15 <refentrytitle>systemd-gpt-auto-generator</refentrytitle>
16 <manvolnum>8</manvolnum>
17 </refmeta>
18
19 <refnamediv>
20 <refname>systemd-gpt-auto-generator</refname>
21 <refpurpose>Generator for automatically discovering and mounting root, <filename>/home/</filename>,
22 <filename>/srv/</filename>, <filename>/var/</filename> and <filename>/var/tmp/</filename> partitions, as
23 well as discovering and enabling swap partitions, based on GPT partition type GUIDs</refpurpose>
24 </refnamediv>
25
26 <refsynopsisdiv>
27 <para><filename>/usr/lib/systemd/system-generators/systemd-gpt-auto-generator</filename></para>
28 </refsynopsisdiv>
29
30 <refsect1>
31 <title>Description</title>
32
33 <para><filename>systemd-gpt-auto-generator</filename> is a unit generator that automatically discovers
34 the root partition, <filename>/home/</filename>, <filename>/srv/</filename>, <filename>/var/</filename>,
35 <filename>/var/tmp/</filename>, the EFI System Partition (ESP), the Extended Boot Loader Partition
36 (XBOOTLDR), and swap partitions and creates mount and swap units for them, based on the partition type
37 GUIDs of GUID partition tables (GPT). See <ulink url="https://uefi.org/specifications">UEFI
38 Specification</ulink>, chapter 5 for more details. It implements the <ulink
39 url="https://uapi-group.org/specifications/specs/discoverable_partitions_specification">UAPI.2 Discoverable
40 Partitions Specification</ulink>.</para>
41
42 <para>Note that this generator has no effect on non-GPT systems. It will also not create mount point
43 configuration for directories which already contain files or if the mount point is explicitly configured
44 in <citerefentry
45 project='man-pages'><refentrytitle>fstab</refentrytitle><manvolnum>5</manvolnum></citerefentry>. Additionally
46 no unit will be created for the ESP or the XBOOTLDR partition if mount entries are found in the
47 <filename>/boot/</filename> or <filename>/efi/</filename> hierarchies in <citerefentry
48 project='man-pages'><refentrytitle>fstab</refentrytitle><manvolnum>5</manvolnum></citerefentry>.</para>
49
50 <para>If the units this generator creates are overridden, for example by units in directories with higher
51 precedence, drop-ins and additional dependencies created by this generator might still be used.</para>
52
53 <para>When run in the initial RAM disk (initrd) this generator can automatically search for the root file
54 system. Specifically:
55
56 <itemizedlist>
57 <listitem><para>It will look for the root partition on the same physical disk where the EFI System
58 Partition (ESP) is located. Note that support from the boot loader is required for this to work: the
59 EFI variable <varname>LoaderDevicePartUUID</varname> of the
60 <constant>4a67b082-0a4c-41cf-b6c7-440b29bb8c4f</constant> vendor UUID is used to determine from which
61 partition (and hence disk) the system was booted. If the boot loader does not set this variable, this
62 generator will not be able to detect the root partition. See the <ulink
63 url="https://systemd.io/BOOT_LOADER_INTERFACE">Boot Loader Interface</ulink> for
64 details.</para></listitem>
65
66 <listitem><para>Alternatively, it will look for the root file system on a loopback block device whose
67 <literal>.lo_name</literal> field is set to one of the literal strings <literal>rootdisk</literal> or
68 <literal>rootdisk.raw</literal>. This field can be set via <command>losetup</command>'s
69 <option>--loop-ref=</option> string. For images downloaded via
70 <citerefentry><refentrytitle>systemd-import-generator</refentrytitle><manvolnum>8</manvolnum></citerefentry>
71 make sure to set the <literal>blockdev</literal> option and set the local name string to
72 <literal>rootdisk</literal> to achieve this effect. Note that discovery of the root file system on
73 loopback block devices like this is only done if <literal>root=gpt-auto</literal> or
74 <literal>root=dissect</literal> is specified explicitly on the kernel command line, unlike the
75 discovery based on the boot loader reported ESP which is also enabled if no <literal>root=</literal>
76 parameter is specified at all. (The latter relies on <command>systemd-udevd.service</command>'s
77 <filename>/dev/gpt-auto-root</filename> block device symlink generation).</para></listitem>
78
79 <listitem><para>It will also generate a unit file mounting the EFI System Partition (ESP) to
80 <filename>/sysefi/</filename>, if applicable. Unlike the file systems mentioned above this mount is not
81 activated by default however, but can be pulled in by services requiring ESP access from within the
82 initrd. Note that this mount point is initrd-specific and does not make use of autofs. The ESP is
83 typically mounted at a different place and via autofs once the system transitions out of the
84 initrd.</para></listitem>
85 </itemizedlist>
86 </para>
87
88 <para>When run on the host system (i.e. after successfully transitioning out of the initrd into the root
89 filesystem) this generator will look for all other partitions on the same physical disk as the root
90 partition. For this discovery, boot loader support is not required. Moreover, it is not required that the
91 root partition was automatically discovered by the initrd (as described above) for the discovery of the
92 non-root file partitions to take place. Or in other words: automatic discovery of the root file system
93 and of the non-root file systems are independent operations, that do not rely on each other, and are done
94 during two distinct phases of the boot process (one in the initrd, the other after). These partitions will
95 not be searched for on systems where the root file system is distributed on multiple disks, for example
96 via btrfs RAID.</para>
97
98 <para>The root partition can be configured explicitly by symlinking
99 <filename>/run/systemd/volatile-root</filename> to <filename>/dev/block/$major:$minor</filename>. This is
100 especially useful if the root mount has been replaced by some form of volatile file system
101 (overlayfs).</para>
102
103 <para><filename>systemd-gpt-auto-generator</filename> is useful for centralizing file system
104 configuration in the partition table and making configuration in <filename>/etc/fstab</filename> or on
105 the kernel command line unnecessary.</para>
106
107 <para>This generator looks for the partitions based on their
108 partition type GUID. The following partition type GUIDs are
109 identified:</para>
110
111 <table>
112 <title>Partition Type GUIDs</title>
113 <tgroup cols='5' align='left' colsep='1' rowsep='1'>
114 <colspec colname="type" />
115 <colspec colname="guid" />
116 <colspec colname="name" />
117 <colspec colname="where" />
118 <colspec colname="explanation" />
119 <thead>
120 <row>
121 <entry>Partition Type</entry>
122 <entry>GUID</entry>
123 <entry>Name</entry>
124 <entry>Mount Point</entry>
125 <entry>Explanation</entry>
126 </row>
127 </thead>
128 <tbody>
129 <row>
130 <entry><constant>SD_GPT_ROOT_X86_64</constant></entry>
131 <entry><constant>4f68bce3-e8cd-4db1-96e7-fbcaf984b709</constant></entry>
132 <entry><filename>Root Partition (x86-64)</filename></entry>
133 <entry><filename>/</filename></entry>
134 <entry>The first partition with this type UUID, located on the same disk as the ESP used for booting, is used as the root file system <filename>/</filename> on AMD64 / 64-bit x86 systems.</entry>
135 </row>
136 <row>
137 <entry><constant>SD_GPT_ROOT_ARM64</constant></entry>
138 <entry><constant>b921b045-1df0-41c3-af44-4c6f280d3fae</constant></entry>
139 <entry><filename>Root Partition (64-bit ARM)</filename></entry>
140 <entry><filename>/</filename></entry>
141 <entry>The first partition with this type UUID, located on the same disk as the ESP used for booting, is used as the root file system <filename>/</filename> on AArch64 / 64-bit ARM systems.</entry>
142 </row>
143 <row>
144 <entry><constant>SD_GPT_ROOT_ALPHA</constant> <constant>SD_GPT_ROOT_ARC</constant> <constant>SD_GPT_ROOT_ARM</constant> <constant>SD_GPT_ROOT_ARM64</constant> <constant>SD_GPT_ROOT_IA64</constant> <constant>SD_GPT_ROOT_LOONGARCH64</constant> <constant>SD_GPT_ROOT_MIPS</constant> <constant>SD_GPT_ROOT_MIPS64</constant> <constant>SD_GPT_ROOT_MIPS_LE</constant> <constant>SD_GPT_ROOT_MIPS64_LE</constant> <constant>SD_GPT_ROOT_PARISC</constant> <constant>SD_GPT_ROOT_PPC</constant> <constant>SD_GPT_ROOT_PPC64</constant> <constant>SD_GPT_ROOT_PPC64_LE</constant> <constant>SD_GPT_ROOT_RISCV32</constant> <constant>SD_GPT_ROOT_RISCV64</constant> <constant>SD_GPT_ROOT_S390</constant> <constant>SD_GPT_ROOT_S390X</constant> <constant>SD_GPT_ROOT_TILEGX</constant> <constant>SD_GPT_ROOT_X86</constant> <constant>SD_GPT_ROOT_X86_64</constant> <constant>SD_GPT_USR_ALPHA</constant> <constant>SD_GPT_USR_ARC</constant> <constant>SD_GPT_USR_ARM</constant> <constant>SD_GPT_USR_IA64</constant> <constant>SD_GPT_USR_LOONGARCH64</constant> <constant>SD_GPT_USR_MIPS_LE</constant> <constant>SD_GPT_USR_MIPS64_LE</constant> <constant>SD_GPT_USR_PARISC</constant> <constant>SD_GPT_USR_PPC</constant> <constant>SD_GPT_USR_PPC64</constant> <constant>SD_GPT_USR_PPC64_LE</constant> <constant>SD_GPT_USR_RISCV32</constant> <constant>SD_GPT_USR_RISCV64</constant> <constant>SD_GPT_USR_S390</constant> <constant>SD_GPT_USR_S390X</constant> <constant>SD_GPT_USR_TILEGX</constant> <constant>SD_GPT_USR_X86</constant></entry>
145 <entry>…</entry>
146 <entry>Root partitions for other architectures</entry>
147 <entry><filename>/</filename></entry>
148 <entry>The first partition with the type UUID matching the architecture, located on the same disk as the ESP used for booting, is used as the root file system <filename>/</filename>. For the full list and constant values, see <ulink url="https://uapi-group.org/specifications/specs/discoverable_partitions_specification">UAPI.2 Discoverable Partitions Specification</ulink>.</entry>
149 </row>
150 <row>
151 <entry><constant>SD_GPT_HOME</constant></entry>
152 <entry><constant>933ac7e1-2eb4-4f13-b844-0e14e2aef915</constant></entry>
153 <entry>Home Partition</entry>
154 <entry><filename>/home/</filename></entry>
155 <entry>The first partition with this type UUID on the same disk as the root partition is mounted to <filename>/home/</filename>.</entry>
156 </row>
157 <row>
158 <entry><constant>SD_GPT_SRV</constant></entry>
159 <entry><constant>3b8f8425-20e0-4f3b-907f-1a25a76f98e8</constant></entry>
160 <entry>Server Data Partition</entry>
161 <entry><filename>/srv/</filename></entry>
162 <entry>The first partition with this type UUID on the same disk as the root partition is mounted to <filename>/srv/</filename>.</entry>
163 </row>
164 <row>
165 <entry><constant>SD_GPT_VAR</constant></entry>
166 <entry><constant>4d21b016-b534-45c2-a9fb-5c16e091fd2d</constant></entry>
167 <entry>Variable Data Partition</entry>
168 <entry><filename>/var/</filename></entry>
169 <entry>The first partition with this type UUID on the same disk as the root partition is mounted to <filename>/var/</filename> — under the condition its partition UUID matches the first 128 bit of the HMAC-SHA256 of the GPT type uuid of this partition keyed by the machine ID of the installation stored in <citerefentry><refentrytitle>machine-id</refentrytitle><manvolnum>5</manvolnum></citerefentry>. This can be generated using <citerefentry><refentrytitle>systemd-id128</refentrytitle><manvolnum>1</manvolnum></citerefentry>.</entry>
170 </row>
171 <row>
172 <entry><constant>SD_GPT_TMP</constant></entry>
173 <entry><constant>7ec6f557-3bc5-4aca-b293-16ef5df639d1</constant></entry>
174 <entry>Temporary Data Partition</entry>
175 <entry><filename>/var/tmp/</filename></entry>
176 <entry>The first partition with this type UUID on the same disk as the root partition is mounted to <filename>/var/tmp/</filename>.</entry>
177 </row>
178 <row>
179 <entry><constant>SD_GPT_SWAP</constant></entry>
180 <entry><constant>0657fd6d-a4ab-43c4-84e5-0933c84b4f4f</constant></entry>
181 <entry>Swap</entry>
182 <entry>n/a</entry>
183 <entry>All partitions with this type UUID on the same disk as the root partition are used as swap.</entry>
184 </row>
185 <row>
186 <entry><constant>SD_GPT_ESP</constant></entry>
187 <entry><constant>c12a7328-f81f-11d2-ba4b-00a0c93ec93b</constant></entry>
188 <entry>EFI System Partition (ESP)</entry>
189 <entry><filename>/efi/</filename> or <filename>/boot/</filename> once the system transitioned out of the initrd, <filename>/sysefi/</filename> before</entry>
190 <entry>The first partition with this type UUID located on the same disk as the root partition is mounted to <filename>/boot/</filename> or <filename>/efi/</filename>, see below.</entry>
191 </row>
192 <row>
193 <entry><constant>SD_GPT_XBOOTLDR</constant></entry>
194 <entry><constant>bc13c2ff-59e6-4262-a352-b275fd6f7172</constant></entry>
195 <entry>Extended Boot Loader Partition</entry>
196 <entry><filename>/boot/</filename></entry>
197 <entry>The first partition with this type UUID located on the same disk as the root partition is mounted to <filename>/boot/</filename>, see below.</entry>
198 </row>
199 </tbody>
200 </tgroup>
201 </table>
202
203 <para>This generator understands the following attribute flags for partitions:</para>
204
205 <table>
206 <title>Partition Attribute Flags</title>
207 <tgroup cols='4' align='left' colsep='1' rowsep='1'>
208 <colspec colname="flag" />
209 <colspec colname="value" />
210 <colspec colname="where" />
211 <colspec colname="explanation" />
212 <thead>
213 <row>
214 <entry>Flag</entry>
215 <entry>Value</entry>
216 <entry>Applicable to</entry>
217 <entry>Explanation</entry>
218 </row>
219 </thead>
220 <tbody>
221 <row>
222 <entry><constant>SD_GPT_FLAG_READ_ONLY</constant></entry>
223 <entry><constant>0x1000000000000000</constant></entry>
224 <entry><filename>/</filename>, <filename>/home/</filename>, <filename>/srv/</filename>, <filename>/var/</filename>, <filename>/var/tmp/</filename>, Extended Boot Loader Partition</entry>
225 <entry>Partition is mounted read-only</entry>
226 </row>
227
228 <row>
229 <entry><constant>SD_GPT_FLAG_NO_AUTO</constant></entry>
230 <entry><constant>0x8000000000000000</constant></entry>
231 <entry><filename>/</filename>, <filename>/home/</filename>, <filename>/srv/</filename>, <filename>/var/</filename>, <filename>/var/tmp/</filename>, Extended Boot Loader Partition</entry>
232 <entry>Partition is not mounted automatically</entry>
233 </row>
234
235 <row>
236 <entry><constant>SD_GPT_FLAG_NO_BLOCK_IO_PROTOCOL</constant></entry>
237 <entry><constant>0x0000000000000002</constant></entry>
238 <entry>EFI System Partition (ESP)</entry>
239 <entry>Partition is not mounted automatically</entry>
240 </row>
241 </tbody>
242 </tgroup>
243 </table>
244
245 <para>The <filename>/home/</filename>, <filename>/srv/</filename>, <filename>/var/</filename>,
246 <filename>/var/tmp/</filename> and swap partitions may be encrypted in LUKS format. In this case, a
247 device mapper device is set up under the names <filename>/dev/mapper/home</filename>,
248 <filename>/dev/mapper/srv</filename>, <filename>/dev/mapper/var</filename>,
249 <filename>/dev/mapper/tmp</filename> or <filename>/dev/mapper/swap</filename>. Note that this might
250 create conflicts if the same partition is listed in <filename>/etc/crypttab</filename> with a different
251 device mapper device name.</para>
252
253 <para>When systemd is running in the initrd the <filename>/</filename> partition may be encrypted with
254 LUKS as well. In this case, a device mapper device is set up under the name
255 <filename>/dev/mapper/root</filename>, and a <filename>sysroot.mount</filename> is set up that mounts the
256 device under <filename>/sysroot</filename>. For more information, see
257 <citerefentry><refentrytitle>bootup</refentrytitle><manvolnum>7</manvolnum></citerefentry>.
258 </para>
259
260 <para>Mount and automount units for the EFI System Partition (ESP) and Extended Boot Loader Partition
261 (XBOOTLDR) are generated on EFI systems. If the disk contains an XBOOTLDR partition, as defined in the
262 <ulink url="https://uapi-group.org/specifications/specs/boot_loader_specification">UAPI.1 Boot Loader
263 Specification</ulink>, it is made available at <filename>/boot/</filename>. This generator creates an
264 automount unit; the mount will only be activated on-demand when accessed. The mount point will be created
265 if necessary.</para>
266
267 <para>The ESP is mounted to <filename>/boot/</filename> if that directory exists and is not used for
268 XBOOTLDR, and otherwise to <filename>/efi/</filename>. Same as for <filename>/boot/</filename>, an
269 automount unit is used. The mount point will be created if necessary. These apply once the system
270 transitioned out of the initrd phase. Before that, if components in the initrd require ESP access, it
271 will be mounted to <filename>/sysefi/</filename>.</para>
272
273 <para>No configuration is created for mount points that are configured in <citerefentry
274 project='man-pages'><refentrytitle>fstab</refentrytitle><manvolnum>5</manvolnum></citerefentry> or when
275 the target directory contains files.</para>
276
277 <para>When using this generator in conjunction with btrfs file
278 systems, make sure to set the correct default subvolumes on them,
279 using <command>btrfs subvolume set-default</command>.</para>
280
281 <para>If the system was booted via
282 <citerefentry><refentrytitle>systemd-stub</refentrytitle><manvolnum>7</manvolnum></citerefentry> and the
283 stub reported to userspace that the kernel image was measured to a TPM2 PCR, then any discovered root and
284 <filename>/var/</filename> volume identifiers (and volume encryption keys, in case they are encrypted)
285 will be automatically measured into PCR 15 on activation, via
286 <citerefentry><refentrytitle>[email protected]</refentrytitle><manvolnum>8</manvolnum></citerefentry>. Moreover,
287 information about the LUKS key slot used to unlock the volume is measured into NvPCR
288 <literal>cryptsetup</literal>. Finally, if the root or <filename>/usr/</filename> partition is protected
289 via Verity its root hash and the serial/issuer of the key used for the provided root hash signature (if
290 any) are measured into the NvPCR <literal>verity</literal>.</para>
291
292 <para>Mount constraint metadata contained in the file systems is validated by pulling in
293 <citerefentry><refentrytitle>[email protected]</refentrytitle><manvolnum>8</manvolnum></citerefentry>
294 for generated mounts.</para>
295
296 <para><filename>systemd-gpt-auto-generator</filename> implements
297 <citerefentry><refentrytitle>systemd.generator</refentrytitle><manvolnum>7</manvolnum></citerefentry>.</para>
298 </refsect1>
299
300 <refsect1>
301 <title>Kernel Command Line</title>
302
303 <para><filename>systemd-gpt-auto-generator</filename> understands the following kernel command line
304 parameters:</para>
305
306 <variablelist class='kernel-commandline-options'>
307
308 <varlistentry>
309 <term><varname>systemd.gpt_auto</varname></term>
310 <term><varname>rd.systemd.gpt_auto</varname></term>
311
312 <listitem><para>Those options take an optional boolean argument, and default to yes.
313 The generator is enabled by default, and a false value may be used to disable it
314 (e.g. <literal>systemd.gpt_auto=0</literal>).
315 </para>
316
317 <xi:include href="version-info.xml" xpointer="v242"/></listitem>
318 </varlistentry>
319
320 <varlistentry>
321 <term><varname>systemd.image_policy=</varname></term>
322
323 <listitem><para>Takes an image dissection policy string as argument (as per
324 <citerefentry><refentrytitle>systemd.image-policy</refentrytitle><manvolnum>7</manvolnum></citerefentry>),
325 and allows enforcing a policy on dissection and use of the automatically discovered GPT partition
326 table entries.</para>
327
328 <para>Note that the specified image policy is not taken into account for automatic root or
329 <filename>/usr/</filename> file system discovery unless
330 <varname>root=dissect</varname>/<varname>mount.usr=dissect</varname> (or
331 <varname>root=dissect-force</varname>) are specified. (The policy will always be applied to the other
332 auto-discoverable partition types.)</para>
333
334 <xi:include href="version-info.xml" xpointer="v254"/></listitem>
335 </varlistentry>
336
337 <varlistentry>
338 <term><varname>systemd.image_filter=</varname></term>
339
340 <listitem><para>Takes an image dissection filter string as argument (as per
341 <citerefentry><refentrytitle>systemd.image-filter</refentrytitle><manvolnum>7</manvolnum></citerefentry>),
342 and allows enforcing a set of globbing patterns on the partition matching of the automatically
343 discovered GPT partition table entries.</para>
344
345 <para>Note that the specified image filter is not taken into account for automatic root or
346 <filename>/usr/</filename> file system discovery unless
347 <varname>root=dissect</varname>/<varname>mount.usr=dissect</varname> (or
348 <varname>root=dissect-force</varname>) are specified. (The filter will always be applied to the other
349 auto-discoverable partition types.)</para>
350
351 <xi:include href="version-info.xml" xpointer="v258"/></listitem>
352 </varlistentry>
353
354 <varlistentry>
355 <term><varname>root=</varname></term>
356 <term><varname>rootfstype=</varname></term>
357 <term><varname>rootflags=</varname></term>
358
359 <listitem><para>When <varname>root=</varname> is used with the special value
360 <literal>gpt-auto</literal>, basic automatic discovery of the root partition based on the GPT
361 partition type is enabled. Use of the root partition is delayed until factory reset mode is left, in
362 case it is enabled during the current boot. See <ulink url="https://systemd.io/FACTORY_RESET">Factory
363 Reset</ulink> for more information on that. If <literal>gpt-auto-force</literal> is specified
364 automatic discovery of the root partition is enabled, ignoring any factory reset mode.</para>
365
366 <para>If <varname>root=</varname> is set to the special value <literal>dissect</literal> full
367 automatic discovery of the root partition based on GPT partition information is enabled. This is a
368 superset of <varname>root=gpt-auto</varname>, as it automatically configures Verity partitions
369 (including signature-based setup) following the logic defined for that in the <ulink
370 url="https://uapi-group.org/specifications/specs/discoverable_partitions_specification/">UAPI.2 Discoverable
371 Partitions Specification</ulink>. Moreover it takes the configured image policy and image filter into
372 account for all partition types, including the root file system. <literal>root=dissect</literal> will
373 wait for the factory reset phase to be completed if it is in effect before activating the root file
374 system. Use <literal>root=dissect-force</literal> to ignore the factory reset phase and activate the
375 root file system immediately.</para>
376
377 <para>Any other value (i.e. besides <literal>gpt-auto</literal>, <literal>gpt-auto-force</literal>,
378 <literal>dissect</literal>, <literal>dissect-force</literal>) disables automatic root file system
379 discovery.</para>
380
381 <para>If <varname>root=</varname> is not specified at all on the kernel command line automatic
382 discovery of the root partition via the ESP reported by the boot loader is also enabled (taking
383 factory reset state into account, i.e. equivalent to <literal>root=gpt-auto</literal>), however in
384 this case discovery based on the loopback block device <literal>.lo_name</literal> field is not
385 enabled.</para>
386
387 <para>The <varname>rootfstype=</varname> and <varname>rootflags=</varname> options are used to select
388 the file system type and options when the root file system is automatically discovered.</para>
389
390 <xi:include href="version-info.xml" xpointer="v242"/></listitem>
391 </varlistentry>
392
393 <varlistentry>
394 <term><varname>mount.usr=</varname></term>
395 <term><varname>mount.usrfstype=</varname></term>
396 <term><varname>mount.usrflags=</varname></term>
397
398 <listitem><para>Similar to <varname>root=</varname>, <varname>rootfstype=</varname>,
399 <varname>rootflags=</varname> (see above), but applies to the <filename>/usr/</filename> partition
400 instead. Note that the <literal>gpt-auto</literal>, <literal>gpt-auto-force</literal>,
401 <literal>dissect-force</literal> settings that <filename>root=</filename> understands are not
402 supported by <varname>mount.usr=</varname> (however <literal>dissect</literal> is).</para>
403
404 <para>Also note that automatic partition discovery for <filename>/usr/</filename> must be enabled
405 explicitly, unlike the discovery for the root file system, which is enabled if no
406 <varname>root=</varname> parameter is passed at all.</para>
407
408 <xi:include href="version-info.xml" xpointer="v258"/></listitem>
409 </varlistentry>
410
411 <varlistentry>
412 <term><varname>rw</varname></term>
413 <term><varname>ro</varname></term>
414
415 <listitem><para>Mount the root partition read-write or read-only <emphasis>initially</emphasis>.</para>
416
417 <para>Note that unlike most kernel command line options these settings do not override configuration
418 in the file system, and the file system may be remounted later. See
419 <citerefentry><refentrytitle>systemd-remount-fs.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
420 </para>
421
422 <xi:include href="version-info.xml" xpointer="v242"/></listitem>
423 </varlistentry>
424
425 <varlistentry>
426 <term><varname>systemd.swap=</varname></term>
427
428 <listitem><para>Takes a boolean argument or enables the option if specified without an argument.
429 If disabled, automatic discovery of swap partition(s) based on GPT partition type is disabled.
430 Defaults to enabled.</para>
431
432 <xi:include href="version-info.xml" xpointer="v254"/></listitem>
433 </varlistentry>
434 </variablelist>
435 </refsect1>
436
437 <refsect1>
438 <title>See Also</title>
439 <para><simplelist type="inline">
440 <member><citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry></member>
441 <member><citerefentry><refentrytitle>systemd.mount</refentrytitle><manvolnum>5</manvolnum></citerefentry></member>
442 <member><citerefentry><refentrytitle>systemd.swap</refentrytitle><manvolnum>5</manvolnum></citerefentry></member>
443 <member><citerefentry><refentrytitle>systemd-fstab-generator</refentrytitle><manvolnum>8</manvolnum></citerefentry></member>
444 <member><citerefentry><refentrytitle>[email protected]</refentrytitle><manvolnum>8</manvolnum></citerefentry></member>
445 <member><citerefentry><refentrytitle>[email protected]</refentrytitle><manvolnum>8</manvolnum></citerefentry></member>
446 <member><citerefentry><refentrytitle>[email protected]</refentrytitle><manvolnum>8</manvolnum></citerefentry></member>
447 <member><citerefentry><refentrytitle>machine-id</refentrytitle><manvolnum>5</manvolnum></citerefentry></member>
448 <member><citerefentry project='die-net'><refentrytitle>cryptsetup</refentrytitle><manvolnum>8</manvolnum></citerefentry></member>
449 <member><citerefentry project='man-pages'><refentrytitle>fstab</refentrytitle><manvolnum>5</manvolnum></citerefentry></member>
450 <member><citerefentry project='url'><refentrytitle url='https://btrfs.readthedocs.io/en/latest/btrfs.html'>btrfs</refentrytitle><manvolnum>8</manvolnum></citerefentry></member>
451 </simplelist></para>
452 </refsect1>
453
454 </refentry>