base-files: set MAC for bridge ports (devices) instead of bridge itself
authorRafał Miłecki <rafal@milecki.pl>
Mon, 14 Jun 2021 18:18:14 +0000 (20:18 +0200)
committerRafał Miłecki <rafal@milecki.pl>
Tue, 22 Jun 2021 06:10:05 +0000 (08:10 +0200)
commit125deb4d783e548228e68f6e4b42b5eb84ba8b8c
treef4cc855ada985ac8f93b106d067b22dd2b629b04
parente410ef838959c0d7cd9a6c0a13d5f2ca2b03c077
base-files: set MAC for bridge ports (devices) instead of bridge itself

This restores the original config_generate behaviour. With MAC set for
bridged devices the bridge automatically gets its MAC adjusted (it picks
the lowest MAC of bridged devices).

This fixes confusing interfaces setup (bridge ports not having custom
MAC assigned).

Reported-by: Koen Vandeputte <koen.vandeputte@citymesh.com>
Fixes: c2139eef279e ("base-files: simplify setting device MAC")
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit c8d8eb9d13fc6fc8b394a620c27995ee71d29c4d)
package/base-files/files/bin/config_generate