summaryrefslogtreecommitdiffstats
path: root/man
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2017-12-23 15:02:58 +0100
committerLennart Poettering <lennart@poettering.net>2017-12-26 17:43:29 +0100
commit68c58c67b55e1de5e447bcc9def9532634503a69 (patch)
tree6960b3f2a582aaf8fa8fd4a2451965d202475a01 /man
parentAdd note about kernel version unportability (diff)
downloadsystemd-68c58c67b55e1de5e447bcc9def9532634503a69.tar.xz
systemd-68c58c67b55e1de5e447bcc9def9532634503a69.zip
condition: extend ConditionKernelVersion= with relative version checks
Now that we have str_verscmp() in our source tree anyway, let's make it generic and reuse it for ConditionKernelVersion=.
Diffstat (limited to 'man')
-rw-r--r--man/systemd.unit.xml4
1 files changed, 3 insertions, 1 deletions
diff --git a/man/systemd.unit.xml b/man/systemd.unit.xml
index 73f33a4580..19a6db7f65 100644
--- a/man/systemd.unit.xml
+++ b/man/systemd.unit.xml
@@ -1053,7 +1053,9 @@
<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 single string, optionally containing shell-style globs.</para>
+ match it). The argument must be a single string. If the string starts with one of <literal>&lt;</literal>,
+ <literal>&lt;=</literal>, <literal>=</literal>, <literal>&gt;=</literal>, <literal>&gt;</literal> a relative
+ version comparison is done, otherwise the specified string is matched with shell-style globs.</para>
<para>Note that using the kernel version string is an unreliable way to determine which features are supported
by a kernel, because of the widespread practice of backporting drivers, features, and fixes from newer upstream