]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Fix MTU on bond interface. 286/head
authorRobert LeBlanc <robert@leblancnet.us>
Thu, 21 Sep 2017 20:33:59 +0000 (14:33 -0600)
committerRobert LeBlanc <robert@leblancnet.us>
Thu, 21 Sep 2017 20:33:59 +0000 (14:33 -0600)
The MTU is only being set on the slave devices and the MTU of the
bonding master is not being updated. This updates the bonding master and
also changes the MTU on the slaves as expected.

Signed-Off-By: Robert LeBlanc <robert@leblancnet.us>
modules.d/40network/ifup.sh

index 687b5707ff3fac9d60480dc15b0985ae703d829c..0db3c0213957d3a634b0517670cd2e9930b591e2 100755 (executable)
@@ -257,7 +257,7 @@ if [ -z "$NO_BOND_MASTER" ]; then
             done
 
             # Set mtu on bond master
-            [ -n "$bondmtu" ] && ip link set mtu $bondmtu dev $netif
+            [ -n "$bondmtu" ] && ip link set mtu $bondmtu dev $bondname
 
             # add the bits to setup the needed post enslavement parameters
             for arg in $bondoptions ; do