From: Marcin Krol Date: Thu, 23 Jul 2015 19:04:09 +0000 (+0000) Subject: - set net.ifnames default value to disabled X-Git-Url: https://git.tld-linux.org/?a=commitdiff_plain;h=a61640af5d1629d8e233db35a8edf6c261c52608;p=packages%2Fudev.git - set net.ifnames default value to disabled --- 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}