summaryrefslogtreecommitdiff
path: root/man/systemd-repart.xml
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2022-11-22 14:27:30 +0100
committerDaan De Meyer <daan.j.demeyer@gmail.com>2022-11-25 12:07:38 +0100
commit7d505753f1d75bb7ea806a4f7b0bd0fd906e7aed (patch)
treed193ef7a88b3a5c316d7f0aef21b4c5c881f4033 /man/systemd-repart.xml
parent220780db86c0dabf1baef7781f9ad2921e93806b (diff)
downloadsystemd-7d505753f1d75bb7ea806a4f7b0bd0fd906e7aed.tar.gz
repart: Add --skip-partitions=
--include-partitions and --exclude-partitions now fully exclude partitions from repart. Whenever a partition type is excluded, we don't take any partitions of that type into account at all when running systemd-repart. --skip-partitions= is introduced to do what --exclude-partitions did previously. Any skipped partitions are taken into acount when doing size calculations, but are not yet populated. Why do we need both concepts? Exclusion is needed so that we can use shared repart definitions to generate bootable and non-bootable images. When generating a non-bootable image, we use --exclude-partitions to exclude the ESP partition. Skipping is needed so that we can populate the root partition while skipping the ESP partition, get the roothash of the root partition, use that to generate a UKI, and finally populate the ESP partition with the UKI included.
Diffstat (limited to 'man/systemd-repart.xml')
-rw-r--r--man/systemd-repart.xml17
1 files changed, 12 insertions, 5 deletions
diff --git a/man/systemd-repart.xml b/man/systemd-repart.xml
index 6559fceedb..2c74afbe0f 100644
--- a/man/systemd-repart.xml
+++ b/man/systemd-repart.xml
@@ -372,11 +372,18 @@
are excluded. If <option>--exclude-partitions=</option> is used, all partitions that are specified
are excluded. Both options take a comma separated list of GPT partition type UUIDs or identifiers
(see <varname>Type=</varname> in
- <citerefentry><refentrytitle>repart.d</refentrytitle><manvolnum>5</manvolnum></citerefentry>). All
- partitions that are excluded using these options are still taken into account when calculating the
- sizes and offsets of other partitions, but aren't actually written to the disk image. The net effect
- of this option is that if you run <command>systemd-repart</command> again without these options, the
- missing partitions will be added as if they had not been excluded the first time
+ <citerefentry><refentrytitle>repart.d</refentrytitle><manvolnum>5</manvolnum></citerefentry>).
+ </para></listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term><option>--skip-partitions=</option><arg rep="repeat">PARTITION</arg></term>
+
+ <listitem><para>This option specifies which partition types <command>systemd-repart</command> should
+ skip. All partitions that are skipped using this option are still taken into account when calculating
+ the sizes and offsets of other partitions, but aren't actually written to the disk image. The net
+ effect of this option is that if you run <command>systemd-repart</command> again without these
+ options, the missing partitions will be added as if they had not been skipped the first time
<command>systemd-repart</command> was executed.</para></listitem>
</varlistentry>