summaryrefslogtreecommitdiff
path: root/man/systemd.unit.xml
diff options
context:
space:
mode:
authorDaniel Braunwarth <daniel@braunwarth.dev>2022-07-30 15:20:15 +0200
committerLuca Boccassi <luca.boccassi@gmail.com>2022-08-25 21:44:21 +0100
commitbf07a1251615629d4fc663b773ef1daf9aad77af (patch)
tree64878e9ec065ebe559685ea0fd7d299c5db00350 /man/systemd.unit.xml
parentde9b57a130e541dc75abe9507a9d94ef35d2ee8b (diff)
downloadsystemd-bf07a1251615629d4fc663b773ef1daf9aad77af.tar.gz
pid1: extend "ConditionFirmware=" for checking SMBIOS system identification information
Diffstat (limited to 'man/systemd.unit.xml')
-rw-r--r--man/systemd.unit.xml22
1 files changed, 18 insertions, 4 deletions
diff --git a/man/systemd.unit.xml b/man/systemd.unit.xml
index 95f1b98cbd..a9114fb353 100644
--- a/man/systemd.unit.xml
+++ b/man/systemd.unit.xml
@@ -1235,10 +1235,24 @@
<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><para>Check whether the system's firmware is of a certain type. Multiple values are possible.</para>
+
+ <para><literal>uefi</literal> for systems with EFI.</para>
+
+ <para><literal>device-tree</literal> for systems with a device tree.</para>
+
+ <para><literal>device-tree-compatible(<replaceable>value</replaceable>)</literal> for systems with a device tree that is compatible to
+ <literal>value</literal>.</para>
+
+ <para><literal>smbios-field(<replaceable>field</replaceable> <replaceable>operator</replaceable> <replaceable>value</replaceable>)</literal>
+ for systems with a SMBIOS field containing a certain value.
+ <literal>field</literal> is the name of the SMBIOS field exposed as <literal>sysfs</literal> attribute file
+ below <filename>/sys/class/dmi/id/</filename>.
+ <literal>operator</literal> is one of <literal>&lt;</literal>, <literal>&lt;=</literal>,
+ <literal>&gt;=</literal>, <literal>&gt;</literal>, <literal>=</literal>, <literal>!=</literal> for version
+ comparison, or <literal>=$</literal>, <literal>!=$</literal> for string comparison.
+ <literal>value</literal> is the expected value of the SMBIOS field (shell-style globs are possible if
+ <literal>=$</literal> or<literal>!=$</literal> is used).</para>
</listitem>
</varlistentry>