diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2023-02-20 20:30:44 +0100 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2023-02-22 12:44:36 +0100 |
commit | b63bd125d4fb8ad1905d6c7dc4d87033ecf8148c (patch) | |
tree | b49e4ae1f36c310a56a33579742294ab38bb5882 /man/repart.d.xml | |
parent | repart: Refactor make_copy_files_denylist() a bit (diff) | |
download | systemd-b63bd125d4fb8ad1905d6c7dc4d87033ecf8148c.tar.xz systemd-b63bd125d4fb8ad1905d6c7dc4d87033ecf8148c.zip |
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.xml | 4 |
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 |