diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-10-09 16:18:30 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-10-09 17:28:53 +0200 |
commit | 01f516314f6f897425e40b840f7ed765653921d9 (patch) | |
tree | c275ca2dd8db9caeab36e598b51871b1be6395ac | |
parent | ae24e4e80eedb9e54c818e6bcf6d812d2c004671 (diff) | |
download | systemd-01f516314f6f897425e40b840f7ed765653921d9.tar.gz |
man: use a list for description of ConditionFirmware=
Also reduce confusion of <replaceable> and <literal> and reword things for
legibility a bit.
-rw-r--r-- | man/systemd.unit.xml | 59 |
1 files changed, 32 insertions, 27 deletions
diff --git a/man/systemd.unit.xml b/man/systemd.unit.xml index ebb84e9db8..bc45803bbe 100644 --- a/man/systemd.unit.xml +++ b/man/systemd.unit.xml @@ -1235,27 +1235,32 @@ <varlistentry> <term><varname>ConditionFirmware=</varname></term> - <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, <literal>=</literal> and <literal>!=</literal> - for literal string comparison, or <literal>$=</literal>, <literal>!$=</literal> for shell-style - glob comparison. <literal>value</literal> is the expected value of the SMBIOS field value - (possibly containing shell style globs in case <literal>$=</literal>/<literal>!$=</literal> is - used).</para> - </listitem> + <listitem><para>Check whether the system's firmware is of a certain type. The following values are + possible:</para> + + <itemizedlist> + <listitem><para><literal>uefi</literal> matches systems with EFI.</para></listitem> + + <listitem><para><literal>device-tree</literal> matches systems with a device tree. + </para></listitem> + + <listitem><para><literal>device-tree-compatible(<replaceable>value</replaceable>)</literal> + matches systems with a device tree that is compatible with <literal>value</literal>. + </para></listitem> + + <listitem><para><literal>smbios-field(<replaceable>field</replaceable> + <replaceable>operator</replaceable> <replaceable>value</replaceable>)</literal> matches systems + with a SMBIOS field containing a certain value. <replaceable>field</replaceable> is the name of + the SMBIOS field exposed as <literal>sysfs</literal> attribute file below + <filename>/sys/class/dmi/id/</filename>. <replaceable>operator</replaceable> is one of + <literal><</literal>, <literal><=</literal>, <literal>>=</literal>, + <literal>></literal>, <literal>==</literal>, <literal><></literal> for version + comparisons, <literal>=</literal> and <literal>!=</literal> for literal string comparisons, or + <literal>$=</literal>, <literal>!$=</literal> for shell-style glob comparisons. + <replaceable>value</replaceable> is the expected value of the SMBIOS field value (possibly + containing shell style globs in case <literal>$=</literal>/<literal>!$=</literal> is used). + </para></listitem> + </itemizedlist></listitem> </varlistentry> <varlistentry> @@ -1332,13 +1337,13 @@ <term><varname>ConditionKernelVersion=</varname></term> <listitem><para><varname>ConditionKernelVersion=</varname> may be used to check whether the kernel - version (as reported by <command>uname -r</command>) matches a certain expression (or if prefixed - with the exclamation mark does not match it). The argument must be a list of (potentially quoted) - expressions. Each expression starts with one of <literal>=</literal> or <literal>!=</literal> for + version (as reported by <command>uname -r</command>) matches a certain expression, or if prefixed + with the exclamation mark, does not match. The argument must be a list of (potentially quoted) + expressions. Each expression starts with one of <literal>=</literal> or <literal>!=</literal> for string comparisons, <literal><</literal>, <literal><=</literal>, <literal>==</literal>, - <literal><></literal>, <literal>>=</literal>, <literal>></literal> for a relative - version comparison, or <literal>$=</literal>, <literal>!$=</literal> for a shell-style glob - match. If no operator is specified <literal>$=</literal> is implied.</para> + <literal><></literal>, <literal>>=</literal>, <literal>></literal> for version + comparisons, or <literal>$=</literal>, <literal>!$=</literal> for a shell-style glob match. If no + operator is specified, <literal>$=</literal> is implied.</para> <para>Note that using the kernel version string is an unreliable way to determine which features are supported by a kernel, because of the widespread practice of backporting drivers, features, and |