add "98-default-mac-none.link" to keep default MAC address of bridge/bond/team
https://bugzilla.redhat.com/show_bug.cgi?id=2107754 https://fedoraproject.org/wiki/Changes/MAC_Address_Policy_none https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/FZGH473ZUGPXK2E3GOEQ5TBLJ62FYJBC/
This commit is contained in:
parent
ba02e90496
commit
aff167152e
20
98-default-mac-none.link
Normal file
20
98-default-mac-none.link
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
# SPDX-License-Identifier: MIT-0
|
||||||
|
#
|
||||||
|
# This config file is installed as part of systemd.
|
||||||
|
# It may be freely copied and edited (following the MIT No Attribution license).
|
||||||
|
#
|
||||||
|
# To make local modifications, one of the following methods may be used:
|
||||||
|
# 1. add a drop-in file that extends this file by creating the
|
||||||
|
# /etc/systemd/network/99-default.link.d/ directory and creating a
|
||||||
|
# new .conf file there.
|
||||||
|
# 2. copy this file into /etc/systemd/network or one of the other paths checked
|
||||||
|
# by systemd-udevd and edit it there.
|
||||||
|
# This file should not be edited in place, because it'll be overwritten on upgrades.
|
||||||
|
|
||||||
|
[Match]
|
||||||
|
Kind=bridge bond team
|
||||||
|
|
||||||
|
[Link]
|
||||||
|
NamePolicy=keep kernel database onboard slot path
|
||||||
|
AlternativeNamesPolicy=database onboard slot path
|
||||||
|
MACAddressPolicy=none
|
@ -138,6 +138,7 @@ for file in files(buildroot):
|
|||||||
pstore|
|
pstore|
|
||||||
sleep|suspend|hibernate|
|
sleep|suspend|hibernate|
|
||||||
systemd-tmpfiles-setup-dev|
|
systemd-tmpfiles-setup-dev|
|
||||||
|
network/98-default-mac-none.link|
|
||||||
network/99-default.link|
|
network/99-default.link|
|
||||||
growfs|makefs|makeswap|mkswap|
|
growfs|makefs|makeswap|mkswap|
|
||||||
fsck|
|
fsck|
|
||||||
|
@ -76,6 +76,8 @@ Source22: sysusers.attr
|
|||||||
Source23: sysusers.prov
|
Source23: sysusers.prov
|
||||||
Source24: sysusers.generate-pre.sh
|
Source24: sysusers.generate-pre.sh
|
||||||
|
|
||||||
|
Source25: 98-default-mac-none.link
|
||||||
|
|
||||||
%if 0
|
%if 0
|
||||||
GIT_DIR=../../src/systemd/.git git format-patch-ab --no-signature -M -N v235..v235-stable
|
GIT_DIR=../../src/systemd/.git git format-patch-ab --no-signature -M -N v235..v235-stable
|
||||||
i=1; for j in 00*patch; do printf "Patch%04d: %s\n" $i $j; i=$((i+1));done|xclip
|
i=1; for j in 00*patch; do printf "Patch%04d: %s\n" $i $j; i=$((i+1));done|xclip
|
||||||
@ -741,6 +743,9 @@ install -Dm0644 -t %{buildroot}%{system_unit_dir}/user-.slice.d/ %{SOURCE15}
|
|||||||
install -Dm0644 -t %{buildroot}%{system_unit_dir}/system.slice.d/ %{SOURCE15}
|
install -Dm0644 -t %{buildroot}%{system_unit_dir}/system.slice.d/ %{SOURCE15}
|
||||||
install -Dm0644 -t %{buildroot}%{user_unit_dir}/slice.d/ %{SOURCE15}
|
install -Dm0644 -t %{buildroot}%{user_unit_dir}/slice.d/ %{SOURCE15}
|
||||||
|
|
||||||
|
# https://bugzilla.redhat.com/show_bug.cgi?id=2107754
|
||||||
|
install -Dm0664 -t %{buildroot}%{_prefix}/lib/systemd/network/ %{SOURCE25}
|
||||||
|
|
||||||
sed -i 's|#!/usr/bin/env python3|#!%{__python3}|' %{buildroot}/usr/lib/systemd/tests/run-unit-tests.py
|
sed -i 's|#!/usr/bin/env python3|#!%{__python3}|' %{buildroot}/usr/lib/systemd/tests/run-unit-tests.py
|
||||||
|
|
||||||
install -m 0644 -D -t %{buildroot}%{_rpmconfigdir}/macros.d/ %{SOURCE21}
|
install -m 0644 -D -t %{buildroot}%{_rpmconfigdir}/macros.d/ %{SOURCE21}
|
||||||
|
Loading…
Reference in New Issue
Block a user