summaryrefslogtreecommitdiff
path: root/man/systemd.link.xml
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-12-04 18:12:55 +0100
committerTom Gundersen <teg@jklm.no>2014-12-04 18:53:47 +0100
commit7eb08da4b388b920c8a894b1500c9cc7dc1f31ef (patch)
tree04e8739827b83b3a4e1bbc50697b58f157afe90d /man/systemd.link.xml
parent03e8fdb34610c498e8c7fbe0ae18b53fe28cfbd1 (diff)
udev: net_setup - allow matching on OriginalName=
This has been requested repeatedly, so let's give it a go. We explicitly do not allow matching on names that have already been changed (from a previous udev run, or otherwise), and matching on unpredictable names (ethX) is discouraged (but not currently disallowed). We also currently allow: [Match] Name=veth0 [Link] Name=my-name0 SomeOtherSetting=true Which means that the link file will be applied the first time it is invoked, but not on subsequent invocations, which may be surprising.
Diffstat (limited to 'man/systemd.link.xml')
-rw-r--r--man/systemd.link.xml20
1 files changed, 16 insertions, 4 deletions
diff --git a/man/systemd.link.xml b/man/systemd.link.xml
index 6c74b42db3..0eb395089d 100644
--- a/man/systemd.link.xml
+++ b/man/systemd.link.xml
@@ -93,12 +93,24 @@
</listitem>
</varlistentry>
<varlistentry>
+ <term><varname>OriginalName=</varname></term>
+ <listitem>
+ <para>The device name, as exposed by the udev
+ property "INTERFACE". May contain shell style
+ globs. This can not be used to match on names
+ that have already been changed from userspace.
+ Caution is adviced when matching on
+ kernel-assigned names, as they are known to
+ be unstable between reboots.</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
<term><varname>Path=</varname></term>
<listitem>
- <para>The persistent path, as exposed by the
- udev property <literal>ID_PATH</literal>. May
- contain shell style globs.</para>
- </listitem>
+ <para>The persistent path, as exposed by the
+ udev property <literal>ID_PATH</literal>. May
+ contain shell style globs.</para>
+ </listitem>
</varlistentry>
<varlistentry>
<term><varname>Driver=</varname></term>