diff --git a/pkg/controller/operatingsystemconfig/actuator.go b/pkg/controller/operatingsystemconfig/actuator.go index c9315c3e..a941f1bf 100644 --- a/pkg/controller/operatingsystemconfig/actuator.go +++ b/pkg/controller/operatingsystemconfig/actuator.go @@ -97,12 +97,6 @@ EOF chmod 0644 /etc/systemd/system/containerd.service.d/11-exec_config.conf ` + writeFilesToDiskScript + ` ` + writeUnitsToDiskScript + ` -if [[ -d /sys/class/net/eth0 ]] -then - ip link set dev eth0 mtu 1460 - grep -q '^MTU' /etc/sysconfig/network/ifcfg-eth0 && sed -i 's/^MTU.*/MTU=1460/' /etc/sysconfig/network/ifcfg-eth0 || echo 'MTU=1460' >> /etc/sysconfig/network/ifcfg-eth0 - wicked ifreload eth0 -fi # mitigate https://github.com/systemd/systemd/issues/7082 # ref https://github.com/coreos/bugs/issues/2193#issuecomment-337767555 diff --git a/pkg/controller/operatingsystemconfig/actuator_test.go b/pkg/controller/operatingsystemconfig/actuator_test.go index e16f2a20..3e743695 100644 --- a/pkg/controller/operatingsystemconfig/actuator_test.go +++ b/pkg/controller/operatingsystemconfig/actuator_test.go @@ -92,12 +92,6 @@ EOF cat << EOF | base64 -d > "/etc/systemd/system/some-unit" Zm9v EOF -if [[ -d /sys/class/net/eth0 ]] -then - ip link set dev eth0 mtu 1460 - grep -q '^MTU' /etc/sysconfig/network/ifcfg-eth0 && sed -i 's/^MTU.*/MTU=1460/' /etc/sysconfig/network/ifcfg-eth0 || echo 'MTU=1460' >> /etc/sysconfig/network/ifcfg-eth0 - wicked ifreload eth0 -fi # mitigate https://github.com/systemd/systemd/issues/7082 # ref https://github.com/coreos/bugs/issues/2193#issuecomment-337767555