Add support for conditions on the machines firmware
This allows to limit units to machines that run on a certain firmware type. For device tree defined machines checking against the machine's compatible is also possible.
This commit is contained in:
committed by
Lennart Poettering
parent
192a9d95ea
commit
cbcdcaaa0e
@@ -222,6 +222,18 @@
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry id='firmware'>
|
||||
<term><varname>Firmware=</varname></term>
|
||||
<listitem>
|
||||
<para>Checks whether the system is running on a machine with the specified firmware. See
|
||||
<varname>ConditionFirmware=</varname> in
|
||||
<citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>
|
||||
for details. When prefixed with an exclamation mark (<literal>!</literal>), the result is negated.
|
||||
If an empty string is assigned, then previously assigned value is cleared.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
|
||||
</refsect1>
|
||||
|
||||
@@ -258,6 +258,17 @@
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><varname>Firmware=</varname></term>
|
||||
<listitem>
|
||||
<para>Checks whether the system is running on a machine with the specified firmware. See
|
||||
<literal>ConditionFirmware=</literal> in
|
||||
<citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>
|
||||
for details. When prefixed with an exclamation mark (<literal>!</literal>), the result is negated.
|
||||
If an empty string is assigned, then previously assigned value is cleared.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</refsect1>
|
||||
|
||||
|
||||
@@ -1172,6 +1172,16 @@
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><varname>ConditionFirmware=</varname></term>
|
||||
|
||||
<listitem><para>Check whether the system's firmware is of a certain type. Possible values are:
|
||||
<literal>uefi</literal> (for systems with EFI),
|
||||
<literal>device-tree</literal> (for systems with a device tree) and
|
||||
<literal>device-tree-compatible(xyz)</literal> (for systems with a device tree that is compatible to <literal>xyz</literal>).</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><varname>ConditionVirtualization=</varname></term>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user