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

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