]> 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>
Fri, 12 Sep 2014 07:53:13 +0000 (09:53 +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

(cherry picked from commit 32125a976bb6ff67768ca813446743b781ba012f)

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

index c1cd23c3b2a4332a133adb56eacaf196bf9e8f0e..48e75a631a202460f60f6a6de00a7eb65588330b 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