From: Fedora dracut team Date: Mon, 19 Oct 2015 16:27:11 +0000 (+0200) Subject: write-ifcfg: fix creating configuration for VLAN X-Git-Tag: RHEL-7.2~1^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F98%2Fhead;p=thirdparty%2Fdracut.git write-ifcfg: fix creating configuration for VLAN Currently the physdev is unset before it is somehow applied. Also there is no DEVICE in the output. --- diff --git a/modules.d/45ifcfg/write-ifcfg.sh b/modules.d/45ifcfg/write-ifcfg.sh index 1e7f694a7..f3a1c1095 100755 --- a/modules.d/45ifcfg/write-ifcfg.sh +++ b/modules.d/45ifcfg/write-ifcfg.sh @@ -141,7 +141,6 @@ 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 @@ -165,7 +164,7 @@ for netup in /tmp/net.*.did-setup ; do { echo "# Generated by dracut initrd" echo "NAME=\"$netif\"" - [ -z "$phydevice" ] && interface_bind "$netif" "$macaddr" + [ -z "$vlan" ] && interface_bind "$netif" "$macaddr" echo "ONBOOT=yes" echo "NETBOOT=yes" echo "UUID=\"$uuid\"" @@ -219,7 +218,7 @@ for netup in /tmp/net.*.did-setup ; do if [ -n "$vlan" ] ; then { echo "TYPE=Vlan" - echo "NAME=\"$netif\"" + echo "DEVICE=\"$netif\"" echo "VLAN=yes" echo "PHYSDEV=\"$phydevice\"" } >> /tmp/ifcfg/ifcfg-$netif