summaryrefslogtreecommitdiff
path: root/man/repart.d.xml
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2023-02-20 20:30:44 +0100
committerDaan De Meyer <daan.j.demeyer@gmail.com>2023-02-22 12:44:36 +0100
commitb63bd125d4fb8ad1905d6c7dc4d87033ecf8148c (patch)
treeb49e4ae1f36c310a56a33579742294ab38bb5882 /man/repart.d.xml
parent5ab863be51ba8a700c30f9d7b4f42ca82836263a (diff)
downloadsystemd-b63bd125d4fb8ad1905d6c7dc4d87033ecf8148c.tar.gz
copy: Support both inode exclusion and contents exclusion
In some cases, we want to exclude a directory's contents but not the directory itself. In other cases, we want to exclude a directory and its contents. Let's extend the denylist logic in copy.h to support both by changing the denylist from a set to hashmap so we can store the deny type as the value. We also modify the repart ExcludeFiles= option to make use of this. If a directory to exclude ends with a "/", we'll only exclude its contents. Otherwise, we'll exclude the full directory.
Diffstat (limited to 'man/repart.d.xml')
-rw-r--r--man/repart.d.xml4
1 files changed, 4 insertions, 0 deletions
diff --git a/man/repart.d.xml b/man/repart.d.xml
index fb5d34baea..4c13ccfb58 100644
--- a/man/repart.d.xml
+++ b/man/repart.d.xml
@@ -453,6 +453,10 @@
exclude multiple files or directories from host from being copied into the newly formatted file
system.</para>
+ <para>If the path is a directory and ends with <literal>/</literal>, only the directory's
+ contents are excluded but not the directory itself. If the path is a directory and does not end with
+ <literal>/</literal>, both the directory and its contents are excluded.</para>
+
<para>When
<citerefentry><refentrytitle>systemd-repart</refentrytitle><manvolnum>8</manvolnum></citerefentry>
is invoked with the <option>--image=</option> or <option>--root=</option> command line switches the