mirror of
https://github.com/systemd/systemd.git
synced 2025-03-26 22:50:16 +03:00
udev: rename kernel command line option to net.ifnames=
This commit is contained in:
parent
08cbc57e87
commit
5a33334b8a
@ -155,11 +155,10 @@
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><varname>net.predictable-names=</varname></term>
|
||||
<term><varname>rd.net.predictable-names=</varname></term>
|
||||
<term><varname>net.ifnames=</varname></term>
|
||||
<listitem>
|
||||
<para>Rename network interfaces to give them predictable names
|
||||
when possible. Defaults to 1.</para>
|
||||
<para>Network interfaces are renamed to give them predictable names
|
||||
when possible. It is enabled by default, specifying 0 disables it.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
|
@ -4,10 +4,8 @@ ACTION=="remove", GOTO="net_name_slot_end"
|
||||
SUBSYSTEM!="net", GOTO="net_name_slot_end"
|
||||
NAME!="", GOTO="net_name_slot_end"
|
||||
|
||||
IMPORT{cmdline}="net.predictable-names"
|
||||
ENV{net.predictable-names}=="0", GOTO="net_name_slot_end"
|
||||
IMPORT{cmdline}="rd.net.predictable-names"
|
||||
ENV{rd.net.predictable-names}=="0", TEST=="/etc/initrd-release", GOTO="net_name_slot_end"
|
||||
IMPORT{cmdline}="net.ifnames"
|
||||
ENV{net.ifnames}=="0", GOTO="net_name_slot_end"
|
||||
|
||||
NAME=="", ENV{ID_NET_NAME_ONBOARD}!="", NAME="$env{ID_NET_NAME_ONBOARD}"
|
||||
NAME=="", ENV{ID_NET_NAME_SLOT}!="", NAME="$env{ID_NET_NAME_SLOT}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user