From: Harald Hoyer Date: Fri, 9 Oct 2015 09:31:28 +0000 (+0200) Subject: ifcfg/write-ifcfg.sh: don't bind interface, if physical device is set X-Git-Tag: RHEL-7.2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3bce34dfd780b9aa9b93c0a09358096b48806c05;p=thirdparty%2Fdracut.git ifcfg/write-ifcfg.sh: don't bind interface, if physical device is set If a physical device is defined, we don't need to bind the interface to the MAC address or something else. --- diff --git a/modules.d/45ifcfg/write-ifcfg.sh b/modules.d/45ifcfg/write-ifcfg.sh index ed66370fc..1e7f694a7 100755 --- a/modules.d/45ifcfg/write-ifcfg.sh +++ b/modules.d/45ifcfg/write-ifcfg.sh @@ -141,6 +141,7 @@ for netup in /tmp/net.*.did-setup ; do unset slave unset ethname unset vlan + unset phydevice [ -e /tmp/bond.${netif}.info ] && . /tmp/bond.${netif}.info [ -e /tmp/team.${netif}.info ] && . /tmp/team.${netif}.info @@ -164,7 +165,7 @@ for netup in /tmp/net.*.did-setup ; do { echo "# Generated by dracut initrd" echo "NAME=\"$netif\"" - interface_bind "$netif" "$macaddr" + [ -z "$phydevice" ] && interface_bind "$netif" "$macaddr" echo "ONBOOT=yes" echo "NETBOOT=yes" echo "UUID=\"$uuid\""