From: Zbigniew Jędrzejewski-Szmek Date: Fri, 15 Dec 2017 20:44:29 +0000 (+0100) Subject: Add note about kernel version unportability X-Git-Tag: v237~171^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=871c6d54e4194732eaf7c7956de256c07d507e24;p=thirdparty%2Fsystemd.git Add note about kernel version unportability --- diff --git a/man/systemd.unit.xml b/man/systemd.unit.xml index 0d35d619e01..73f33a4580d 100644 --- a/man/systemd.unit.xml +++ b/man/systemd.unit.xml @@ -1055,6 +1055,11 @@ by uname -r) 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. + 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 + kernels into older versions provided by distributions. Hence, this check is inherently unportable and should + not be used for units which may be used on different distributions. + ConditionSecurity= may be used to check whether the given security module is enabled on the system. Currently, the recognized values are