]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
ifcfg/write-ifcfg.sh: write DEVICE=$netif for VLAN
authorHarald Hoyer <harald@redhat.com>
Wed, 18 Jan 2017 15:22:52 +0000 (16:22 +0100)
committerHarald Hoyer <harald@redhat.com>
Wed, 18 Jan 2017 15:23:45 +0000 (16:23 +0100)
VLAN interface configuration is not bound by HWADDR but by DEVICE

modules.d/45ifcfg/write-ifcfg.sh

index cae196ddfa2ad466446d75edbb31d9d9e9f1a546..5b0c50dd02d3e5ca8ba618cbd92182427e2e6fc2 100755 (executable)
@@ -210,7 +210,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