summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorJan Synacek <jsynacek@redhat.com>2019-10-17 09:37:35 +0200
committerThe Plumber <50238977+systemd-rhel-bot@users.noreply.github.com>2019-10-21 12:10:38 +0200
commitd6210c3d053d70175d72ed1d1719497eed76000b (patch)
tree90d55fed97028bfb28816c4d88539cfe4d636502 /man
parent9f259b46b760b2aa08ac1fe76fe61df514e2768f (diff)
downloadsystemd-d6210c3d053d70175d72ed1d1719497eed76000b.tar.gz
udev: introduce CONST key name
Currently, there is no way to match against system-wide constants, such as architecture or virtualization type, without forking helper binaries. That potentially results in a huge number of spawned processes which output always the same answer. This patch introduces a special CONST keyword which takes a hard-coded string as its key and returns a value assigned to that key. Currently implemented are CONST{arch} and CONST{virt}, which can be used to match against the system's architecture and virtualization type. (based on commit 4801d8afe2ff1c1c075c9f0bc5631612172e0bb7) Resolves: #1762679
Diffstat (limited to 'man')
-rw-r--r--man/udev.xml26
1 files changed, 26 insertions, 0 deletions
diff --git a/man/udev.xml b/man/udev.xml
index bdf901a8f0..8c1eb41787 100644
--- a/man/udev.xml
+++ b/man/udev.xml
@@ -237,6 +237,32 @@
</varlistentry>
<varlistentry>
+ <term><varname>CONST{<replaceable>key</replaceable>}</varname></term>
+ <listitem>
+ <para>Match against a system-wide constant. Supported keys are:</para>
+ <variablelist>
+ <varlistentry>
+ <term><literal>arch</literal></term>
+ <listitem>
+ <para>System's architecture. See <option>ConditionArchitecture=</option> in
+ <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>
+ for possible values.</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><literal>virt</literal></term>
+ <listitem>
+ <para>System's virtualization environment. See
+ <citerefentry><refentrytitle>systemd-detect-virt</refentrytitle><manvolnum>1</manvolnum></citerefentry>
+ for possible values.</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ <para>Unknown keys will never match.</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
<term><varname>TAG</varname></term>
<listitem>
<para>Match against a device tag.</para>