[PATCH] udev-rules: add 80-net-setup-link.rules and .link files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



With systemd >= 209 these file are required for predictable network interface
names
---
 modules.d/95udev-rules/module-setup.sh | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/modules.d/95udev-rules/module-setup.sh b/modules.d/95udev-rules/module-setup.sh
index 584d5c8..2d36712 100755
--- a/modules.d/95udev-rules/module-setup.sh
+++ b/modules.d/95udev-rules/module-setup.sh
@@ -32,7 +32,8 @@ install() {
         60-pcmcia.rules \
         50-udev.rules 95-late.rules \
         50-firmware.rules \
-        75-net-description.rules 80-net-name-slot.rules \
+        75-net-description.rules \
+        80-net-name-slot.rules 80-net-setup-link.rules \
         "$moddir/59-persistent-storage.rules" \
         "$moddir/61-persistent-storage.rules"
 
@@ -42,6 +43,13 @@ install() {
     # eudev rules
     inst_rules 80-drivers-modprobe.rules
 
+    for _i in \
+        ${systemdutildir}/network/*.link \
+        ${hostonly:+/etc/systemd/network/*.link} \
+        ; do
+        [[ -e "$_i" ]] && inst "$_i"
+    done
+
     {
         for i in cdrom tape dialout floppy; do
             if ! egrep -q "^$i:" "$initdir/etc/group" 2>/dev/null; then
-- 
1.8.3.2

--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux