1
0
mirror of https://github.com/systemd/systemd.git synced 2025-05-30 05:05:57 +03:00

sysupdate: Add documentation for new MatchPattern behavior

This commit is contained in:
Valentin David 2023-09-24 17:30:41 +02:00
parent 8b051623cd
commit deafbeb0b9
No known key found for this signature in database
GPG Key ID: 1496F0F95959AB6E

View File

@ -539,6 +539,11 @@
wildcard, so that a version identifier may be extracted from the filename. All other wildcards are wildcard, so that a version identifier may be extracted from the filename. All other wildcards are
optional.</para> optional.</para>
<para>If the source type is <constant>regular-file</constant> or <constant>directory</constant>, the
pattern may contain slash characters. In this case it will match the file or directory in
corresponding subdirectory. For example <literal>MatchPattern=foo_@v/bar.efi</literal> will match
<literal>bar.efi</literal> in directory <literal>foo_1</literal>. </para>
<xi:include href="version-info.xml" xpointer="v251"/></listitem> <xi:include href="version-info.xml" xpointer="v251"/></listitem>
</varlistentry> </varlistentry>
</variablelist> </variablelist>
@ -619,6 +624,12 @@
of new versions to install. If multiple patterns are specified, the first specified is used for of new versions to install. If multiple patterns are specified, the first specified is used for
naming newly installed versions.</para> naming newly installed versions.</para>
<para>If the target type is <constant>regular-file</constant> or <constant>directory</constant>, the
pattern may contain slash characters. In this case it will match the file or directory in
corresponding subdirectory. For example <literal>MatchPattern=foo_@v/bar.efi</literal> will match
<literal>bar.efi</literal> in directory <literal>foo_1</literal>. Directories in the path will be
created when file is installed. Empty directories will be removed when file is removed.</para>
<xi:include href="version-info.xml" xpointer="v251"/></listitem> <xi:include href="version-info.xml" xpointer="v251"/></listitem>
</varlistentry> </varlistentry>