diff options
author | Daniel Braunwarth <daniel@braunwarth.dev> | 2022-07-30 15:20:15 +0200 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2022-08-25 22:44:21 +0200 |
commit | bf07a1251615629d4fc663b773ef1daf9aad77af (patch) | |
tree | 64878e9ec065ebe559685ea0fd7d299c5db00350 /man/systemd.unit.xml | |
parent | mkosi: Print logs of failing tests (diff) | |
download | systemd-bf07a1251615629d4fc663b773ef1daf9aad77af.tar.xz systemd-bf07a1251615629d4fc663b773ef1daf9aad77af.zip |
pid1: extend "ConditionFirmware=" for checking SMBIOS system identification information
Diffstat (limited to 'man/systemd.unit.xml')
-rw-r--r-- | man/systemd.unit.xml | 22 |
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><</literal>, <literal><=</literal>, + <literal>>=</literal>, <literal>></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> |