[packages/systemd/systemd-219] Make sure predictable ifnames are disabled by default
jajcus
jajcus at pld-linux.org
Fri Jul 10 09:53:32 CEST 2015
commit 439308d7c611edadaa88789ab52d0c4e24b15642
Author: Mariusz Mazur <mmazur at axeos.com>
Date: Fri Jul 3 13:48:51 2015 +0000
Make sure predictable ifnames are disabled by default
This can be done in a differt way, but this is the one most people are
familiar with, so I'm using that.
(cherry-picked from master)
systemd.spec | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/systemd.spec b/systemd.spec
index be589c3..4b23e7c 100644
--- a/systemd.spec
+++ b/systemd.spec
@@ -779,6 +779,9 @@ ln -s /lib/udev $RPM_BUILD_ROOT/usr/lib/
cp -a %{SOURCE101} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d/40-alsa-restore.rules
cp -a %{SOURCE102} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d/70-udev-pld.rules
+# http://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames
+ln -s /dev/null $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d/80-net-setup-link.rules
+
# install udev configs
cp -a %{SOURCE103} $RPM_BUILD_ROOT%{_sysconfdir}/udev/links.conf
@@ -1991,6 +1994,7 @@ fi
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/udev/links.conf
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/udev/rules.d/40-alsa-restore.rules
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/udev/rules.d/70-udev-pld.rules
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/udev/rules.d/80-net-setup-link.rules
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/udev/udev.conf
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/systemd.git/commitdiff/c8c1c22df944e571576f17e2edfed795e6bf0c96
More information about the pld-cvs-commit
mailing list