Currently the physdev is unset before it is somehow applied.
Also there is no DEVICE in the output.
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
{
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\""
if [ -n "$vlan" ] ; then
{
echo "TYPE=Vlan"
- echo "NAME=\"$netif\""
+ echo "DEVICE=\"$netif\""
echo "VLAN=yes"
echo "PHYSDEV=\"$phydevice\""
} >> /tmp/ifcfg/ifcfg-$netif