diff options
author | Lennart Poettering <lennart@poettering.net> | 2022-08-26 16:59:47 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2022-09-01 23:15:14 +0200 |
commit | 8daa674090d47320cd7ed6abb72dfdc0c4aa60f3 (patch) | |
tree | faede8c24e242c9c5823defaad9eef9cc9856388 /man | |
parent | compare: add flag for parse_compare_operator() to do equality/inequality comp... (diff) | |
download | systemd-8daa674090d47320cd7ed6abb72dfdc0c4aa60f3.tar.xz systemd-8daa674090d47320cd7ed6abb72dfdc0c4aa60f3.zip |
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')
-rw-r--r-- | man/systemd.unit.xml | 11 |
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><</literal>, <literal><=</literal>, <literal>=</literal>, - <literal>!=</literal>, <literal>>=</literal> and <literal>></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><</literal>, + <literal><=</literal>, <literal>=</literal>, <literal>!=</literal>, <literal>>=</literal>, + <literal>></literal>, <literal>=$</literal> and <literal>!=$</literal>.</para> </listitem> </varlistentry> |