dryang / rpms / systemd

Forked from rpms/systemd a year ago
Clone
36e8a3
From ab0228c3d6ceba20cf89ceb1b16b7e314aaaf989 Mon Sep 17 00:00:00 2001
36e8a3
From: Michal Sekletar <msekleta@redhat.com>
36e8a3
Date: Tue, 7 Aug 2018 10:38:33 +0200
36e8a3
Subject: [PATCH] net_setup_link: allow renaming interfaces that were renamed
36e8a3
 previously
36e8a3
36e8a3
---
36e8a3
 src/udev/net/link-config.c | 1 -
36e8a3
 1 file changed, 1 deletion(-)
36e8a3
36e8a3
diff --git a/src/udev/net/link-config.c b/src/udev/net/link-config.c
36e8a3
index cec4f4f77..511358645 100644
36e8a3
--- a/src/udev/net/link-config.c
36e8a3
+++ b/src/udev/net/link-config.c
36e8a3
@@ -306,7 +306,6 @@ static bool should_rename(struct udev_device *device, bool respect_predictable)
36e8a3
 
36e8a3
         switch (type) {
36e8a3
         case NET_NAME_USER:
36e8a3
-        case NET_NAME_RENAMED:
36e8a3
                 /* these were already named by userspace, do not touch again */
36e8a3
                 return false;
36e8a3
         case NET_NAME_PREDICTABLE: