]> TLD Linux GIT Repositories - packages/udev.git/commitdiff
- set net.ifnames default value to disabled
authorMarcin Krol <hawk@tld-linux.org>
Thu, 23 Jul 2015 19:04:09 +0000 (19:04 +0000)
committerMarcin Krol <hawk@tld-linux.org>
Thu, 23 Jul 2015 19:04:09 +0000 (19:04 +0000)
udev-net.ifnames.patch [new file with mode: 0644]
udev.spec

diff --git a/udev-net.ifnames.patch b/udev-net.ifnames.patch
new file mode 100644 (file)
index 0000000..5749ab5
--- /dev/null
@@ -0,0 +1,12 @@
+diff -ur eudev-3.1.2.orig/rules/80-net-name-slot.rules eudev-3.1.2/rules/80-net-name-slot.rules
+--- eudev-3.1.2.orig/rules/80-net-name-slot.rules      2015-06-02 14:08:44.000000000 +0000
++++ eudev-3.1.2/rules/80-net-name-slot.rules   2015-07-23 18:59:41.569173961 +0000
+@@ -5,7 +5,7 @@
+ NAME!="", GOTO="net_name_slot_end"
+ IMPORT{cmdline}="net.ifnames"
+-ENV{net.ifnames}=="0", GOTO="net_name_slot_end"
++ENV{net.ifnames}!="1", 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}"
index ed75794bd792f86611bbda124c1514fa85213491..13fba0e54ef286a776dc1cf57881d9b64b20c082 100644 (file)
--- a/udev.spec
+++ b/udev.spec
@@ -27,6 +27,7 @@ Source120:    udev.blacklist
 Source121:     fbdev.blacklist
 Patch0:                udev-ploop-rules.patch
 Patch1:                udev-libexecdir.patch
+Patch2:                udev-net.ifnames.patch
 URL:           http://www.gentoo.org/proj/en/eudev/
 BuildRequires: attr-devel
 BuildRequires: autoconf >= 2.64
@@ -185,6 +186,7 @@ Dokumentacja API libgudev.
 %setup -q -n eudev-%{version}
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
 %if %{with apidocs}