]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
bridging: update the ifcfg files generated for bridge slaves
authorAlex Harpin <development@landsofshadow.co.uk>
Sat, 2 Aug 2014 19:08:25 +0000 (20:08 +0100)
committerHarald Hoyer <harald@redhat.com>
Mon, 11 Aug 2014 18:16:06 +0000 (20:16 +0200)
Update the ifcfg files generated for bridge slaves so they reference
the bridge they are part of.  Related to early patch submitted as a
fix for Bug #1123552.

Bug #1123552 https://bugzilla.redhat.com/show_bug.cgi?id=1123552

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

index d920c22fd403fd2c2d536492c4fd10a7ce3b1e6d..7f068cbe7b5e28953132244bcf821efc2f035a9c 100755 (executable)
@@ -234,8 +234,7 @@ for netup in /tmp/net.*.did-setup ; do
                 echo "ONBOOT=yes"
                 echo "NETBOOT=yes"
                 echo "HWADDR=\"$(cat /sys/class/net/$slave/address)\""
-                echo "SLAVE=yes"
-                echo "MASTER=\"$bridgename\""
+                echo "BRIDGE=\"$bridgename\""
                 echo "NAME=\"$slave\""
                 echo "UUID=\"$(cat /proc/sys/kernel/random/uuid)\""
             } >> /tmp/ifcfg/ifcfg-$slave