Blame SOURCES/0493-write-ifcfg-do-t-write-MTU-twice-for-regular-eth-dev.patch

712866
From 3186abd76ef732f2aeec4f3901d0b6a17a701f3a Mon Sep 17 00:00:00 2001
712866
From: Lukas Nykryn <lnykryn@redhat.com>
712866
Date: Wed, 1 Mar 2017 14:43:53 +0100
712866
Subject: [PATCH] write-ifcfg: do't write MTU twice for regular eth devices
712866
712866
If MTU is specified, we write it for every type of device in the
712866
beginning. There is not point writing it again for Type=ethernet
712866
devices.
712866
---
712866
 modules.d/45ifcfg/write-ifcfg.sh | 5 +----
712866
 1 file changed, 1 insertion(+), 4 deletions(-)
712866
712866
diff --git a/modules.d/45ifcfg/write-ifcfg.sh b/modules.d/45ifcfg/write-ifcfg.sh
5c6c2a
index a077da1c..fa395b3a 100755
712866
--- a/modules.d/45ifcfg/write-ifcfg.sh
712866
+++ b/modules.d/45ifcfg/write-ifcfg.sh
712866
@@ -210,10 +210,7 @@ for netup in /tmp/net.*.did-setup ; do
712866
     # bridge needs different things written to ifcfg
712866
     if [ -z "$bridge" ] && [ -z "$bond" ] && [ -z "$vlan" ] && [ -z "$team" ]; then
712866
         # standard interface
712866
-        {
712866
-            echo "TYPE=Ethernet"
712866
-            [ -n "$mtu" ] && echo "MTU=\"$mtu\""
712866
-        } >> /tmp/ifcfg/ifcfg-$netif
712866
+        echo "TYPE=Ethernet" >> /tmp/ifcfg/ifcfg-$netif
712866
     fi
712866
 
712866
     if [ -n "$vlan" ] ; then