[systemd-devel] Condition* options linked by AND if stated more than once

Michal Sekletar msekleta at redhat.com
Thu Aug 7 04:56:08 PDT 2014

On Thu, Aug 07, 2014 at 01:23:34PM +0200, Peter Mattern wrote:
> If one of these options gets stated more than once the different
> instances seem to be linked by a logical AND, too. This prevents
> overwriting these options via snippets in /etc, e. g.
> systemd-timesyncd.service still won't run in KVM with a snippet
> /etc/systemd/system/systemd-timesyncd.service.d/do-run-in-kvm.conf
> stating
>          [Unit]
>          ConditionVirtualization=kvm

What you could do in a snippet is to cancel the previous assignment and define
new value for the key. Following should work


> Seen on Arch Linux, systemd 215-4, tested
> Condition{Architecure,Host,Virtualization}.
> Any thoughts?
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel

More information about the systemd-devel mailing list