diff options
author | Lennart Poettering <lennart@poettering.net> | 2017-12-13 20:34:13 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2017-12-26 17:39:44 +0100 |
commit | 5022f08a23c0b64973b74cd71be9f5122ec655a6 (patch) | |
tree | 9729b57e454b085117cb7c385311f8fd99099c27 /man/systemd.link.xml | |
parent | 95f7f85d39b3a945b3ed329656e36d7b5ab51cb9 (diff) | |
download | systemd-5022f08a23c0b64973b74cd71be9f5122ec655a6.tar.gz |
core,udev,networkd: add ConditionKernelVersion=
This adds a simple condition/assert/match to the service manager, to
udev's .link handling and to networkd, for matching the kernel version
string.
In this version we only do fnmatch() based globbing, but we might want
to extend that to version comparisons later on, if we like, by slightly
extending the syntax with ">=", "<=", ">", "<" and "==" expressions.
Diffstat (limited to 'man/systemd.link.xml')
-rw-r--r-- | man/systemd.link.xml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/man/systemd.link.xml b/man/systemd.link.xml index 162674f769..fb091b883c 100644 --- a/man/systemd.link.xml +++ b/man/systemd.link.xml @@ -172,6 +172,17 @@ for details.</para> </listitem> </varlistentry> + <varlistentry> + <term><varname>KernelVersion=</varname></term> + <listitem> + <para>Checks 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). See + <literal>ConditionKernelVersion=</literal> in + <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry> for + details. + </para> + </listitem> + </varlistentry> <varlistentry> <term><varname>Architecture=</varname></term> <listitem> |