diff --git a/98-default-mac-none.link b/98-default-mac-none.link new file mode 100644 index 0000000..ba44487 --- /dev/null +++ b/98-default-mac-none.link @@ -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 diff --git a/split-files.py b/split-files.py index c936843..b8def0a 100644 --- a/split-files.py +++ b/split-files.py @@ -138,6 +138,7 @@ for file in files(buildroot): pstore| sleep|suspend|hibernate| systemd-tmpfiles-setup-dev| + network/98-default-mac-none.link| network/99-default.link| growfs|makefs|makeswap|mkswap| fsck| diff --git a/systemd.spec b/systemd.spec index 66ffe86..97129de 100644 --- a/systemd.spec +++ b/systemd.spec @@ -76,6 +76,8 @@ Source22: sysusers.attr Source23: sysusers.prov Source24: sysusers.generate-pre.sh +Source25: 98-default-mac-none.link + %if 0 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 @@ -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}%{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 install -m 0644 -D -t %{buildroot}%{_rpmconfigdir}/macros.d/ %{SOURCE21}