summaryrefslogtreecommitdiff
path: root/man/systemd.unit.xml
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2022-08-26 16:59:47 +0200
committerLennart Poettering <lennart@poettering.net>2022-09-01 23:15:14 +0200
commit8daa674090d47320cd7ed6abb72dfdc0c4aa60f3 (patch)
treefaede8c24e242c9c5823defaad9eef9cc9856388 /man/systemd.unit.xml
parent57610982f73162ec37b1de03734250bb5a3222da (diff)
downloadsystemd-8daa674090d47320cd7ed6abb72dfdc0c4aa60f3.tar.gz
condition: allow fnmatch compares for ConditionOSRelease=
We support this for smbios matches, hence do so for /etc/os-release matches too.
Diffstat (limited to 'man/systemd.unit.xml')
-rw-r--r--man/systemd.unit.xml11
1 files changed, 7 insertions, 4 deletions
diff --git a/man/systemd.unit.xml b/man/systemd.unit.xml
index 7c1f7186e2..78a8db2e60 100644
--- a/man/systemd.unit.xml
+++ b/man/systemd.unit.xml
@@ -1694,10 +1694,13 @@
<listitem><para>Verify that a specific <literal>key=value</literal> pair is set in the host's
<citerefentry><refentrytitle>os-release</refentrytitle><manvolnum>5</manvolnum></citerefentry>.</para>
- <para>Other than exact matching with <literal>=</literal>, and <literal>!=</literal>, relative
- comparisons are supported for versioned parameters (e.g. <literal>VERSION_ID</literal>). The
- comparator can be one of <literal>&lt;</literal>, <literal>&lt;=</literal>, <literal>=</literal>,
- <literal>!=</literal>, <literal>&gt;=</literal> and <literal>&gt;</literal>.</para>
+ <para>Other than exact string matching with <literal>=</literal>, and <literal>!=</literal>,
+ relative comparisons are supported for versioned parameters (e.g. <literal>VERSION_ID</literal>),
+ and shell-style wildcard comparisons (<literal>*</literal>, <literal>?</literal>,
+ <literal>[]</literal>) are supported with the <literal>=$</literal> (match) and
+ <literal>!=$</literal> (non-match). The comparator can be one of <literal>&lt;</literal>,
+ <literal>&lt;=</literal>, <literal>=</literal>, <literal>!=</literal>, <literal>&gt;=</literal>,
+ <literal>&gt;</literal>, <literal>=$</literal> and <literal>!=$</literal>.</para>
</listitem>
</varlistentry>