summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2022-08-29 13:27:11 +0200
committerLennart Poettering <lennart@poettering.net>2022-09-01 23:16:13 +0200
commit06219747f5368909e8006c7b6138aca671a3b9d7 (patch)
tree032c819c819da3d35f4d50b3c181bcc34e18cb53 /man
parent666d314a743a59005b4ccef5df5811bd135a3d9d (diff)
downloadsystemd-06219747f5368909e8006c7b6138aca671a3b9d7.tar.gz
condition: change ConditionKernelVersion= so that =/!= mean literal string comparison, and ==/<> version comparison
The only reason to do this is to ensure uniformity with the other options, that work like this, i.e. ConditionOSRelease= or ConditionSecurity=. This is a compatibility break, but a minor one, given that string comparison and version comparison is mostly the same for equality and inequality.
Diffstat (limited to 'man')
-rw-r--r--man/systemd.unit.xml6
1 files changed, 3 insertions, 3 deletions
diff --git a/man/systemd.unit.xml b/man/systemd.unit.xml
index 9dd02c3060..16aa8303e7 100644
--- a/man/systemd.unit.xml
+++ b/man/systemd.unit.xml
@@ -1334,9 +1334,9 @@
<listitem><para><varname>ConditionKernelVersion=</varname> may be used to check whether the kernel
version (as reported by <command>uname -r</command>) matches a certain expression (or if prefixed
with the exclamation mark does not match it). The argument must be a list of (potentially quoted)
- expressions. Each expression starts with one of <literal>&lt;</literal>, <literal>&lt;=</literal>,
- <literal>=</literal> (or <literal>==</literal>), <literal>!=</literal> (or
- <literal>&lt;&gt;</literal>), <literal>&gt;=</literal>, <literal>&gt;</literal> for a relative
+ expressions. Each expression starts with one of <literal>=</literal> or <literal>!=</literal> for
+ string comparisons, <literal>&lt;</literal>, <literal>&lt;=</literal>, <literal>==</literal>,
+ <literal>&lt;&gt;</literal>, <literal>&gt;=</literal>, <literal>&gt;</literal> for a relative
version comparison, or <literal>=$</literal>, <literal>!=$</literal> for a shell-style glob
match. If no operator is specified <literal>=$</literal> is implied.</para>