From a61640af5d1629d8e233db35a8edf6c261c52608 Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Thu, 23 Jul 2015 19:04:09 +0000 Subject: [PATCH] - set net.ifnames default value to disabled --- udev-net.ifnames.patch | 12 ++++++++++++ udev.spec | 2 ++ 2 files changed, 14 insertions(+) create mode 100644 udev-net.ifnames.patch diff --git a/udev-net.ifnames.patch b/udev-net.ifnames.patch new file mode 100644 index 0000000..5749ab5 --- /dev/null +++ b/udev-net.ifnames.patch @@ -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}" diff --git a/udev.spec b/udev.spec index ed75794..13fba0e 100644 --- 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} -- 2.46.0