Treat kernel version condition as a list of quoted checks
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 28 Jun 2019 08:58:06 +0000 (10:58 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 29 Jun 2019 15:11:03 +0000 (17:11 +0200)
commit910c6d09311ff41ee6f913ff4881f4d8059c2a33
tree0ab30166ce1ac5923f50240597551c8504247233
parentfd4487f01ac5d9ae5e03adcf8120e64f2e7c6a52
Treat kernel version condition as a list of quoted checks

Before only one comparison was allowed. Let's make this more flexible:
ConditionKernelVersion = ">=4.0" "<=4.5"

Fixes #12881.

This also fixes expressions like "ConditionKernelVersion=>" which would
evaluate as true.
man/systemd.unit.xml
src/shared/condition.c
src/test/test-condition.c
test/test-execute/exec-basic.service