app-admin/flannel-wrapper: Create a 50-flannel.link

When setting up flannel interfaces, use MACAddressPolicy=none, so that
the MAC Address used is the initial one set by the kernel and not the
one assigned by systemd.

See coreos/flannel#1155 for more information.

In #279 we tried adding the MACAddressPolicy=none setting to the
existing 50-flannel.network file. But the change should have been in a
.link file, not a .network file.
This commit is contained in:
Marga Manterola 2020-04-09 13:28:05 +02:00
parent 56496beb1f
commit 3b42b061f0
3 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,5 @@
[Match]
OriginalName=flannel*
[Link]
MACAddressPolicy=none

View File

@ -3,4 +3,3 @@ Name=flannel*
[Link] [Link]
Unmanaged=yes Unmanaged=yes
MACAddressPolicy=none

View File

@ -41,4 +41,5 @@ src_install() {
insinto /usr/lib/systemd/network insinto /usr/lib/systemd/network
doins "${FILESDIR}"/50-flannel.network doins "${FILESDIR}"/50-flannel.network
doins "${FILESDIR}"/50-flannel.link
} }