mirror of
https://github.com/siderolabs/talos.git
synced 2026-05-04 20:06:18 +02:00
fix: systemd-udevd restore old naming behavior
Restore old naming behavior as `eudevd`. Ref: * https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/ * https://www.freedesktop.org/software/systemd/man/latest/systemd-udevd.service.html * https://www.freedesktop.org/software/systemd/man/latest/systemd.link.html# Signed-off-by: Noel Georgi <git@frezbo.dev>
This commit is contained in:
parent
939c555f9a
commit
e8a262490b
@ -730,7 +730,7 @@ COPY --chmod=0644 hack/nfsmount.conf /rootfs/etc/nfsmount.conf
|
||||
COPY --chmod=0644 hack/containerd.toml /rootfs/etc/containerd/config.toml
|
||||
COPY --chmod=0644 hack/cri-containerd.toml /rootfs/etc/cri/containerd.toml
|
||||
COPY --chmod=0644 hack/cri-plugin.part /rootfs/etc/cri/conf.d/00-base.part
|
||||
COPY --chmod=0644 hack/udevd/80-net-name-slot.rules /rootfs/usr/lib/udev/rules.d/
|
||||
COPY --chmod=0644 hack/udevd/99-default.link /rootfs/usr/lib/systemd/network/
|
||||
COPY --chmod=0644 hack/udevd/90-selinux.rules /rootfs/usr/lib/udev/rules.d/
|
||||
COPY --chmod=0644 hack/lvm.conf /rootfs/etc/lvm/lvm.conf
|
||||
RUN <<END
|
||||
@ -804,7 +804,7 @@ COPY --chmod=0644 hack/nfsmount.conf /rootfs/etc/nfsmount.conf
|
||||
COPY --chmod=0644 hack/containerd.toml /rootfs/etc/containerd/config.toml
|
||||
COPY --chmod=0644 hack/cri-containerd.toml /rootfs/etc/cri/containerd.toml
|
||||
COPY --chmod=0644 hack/cri-plugin.part /rootfs/etc/cri/conf.d/00-base.part
|
||||
COPY --chmod=0644 hack/udevd/80-net-name-slot.rules /rootfs/usr/lib/udev/rules.d/
|
||||
COPY --chmod=0644 hack/udevd/99-default.link /rootfs/usr/lib/systemd/network/
|
||||
COPY --chmod=0644 hack/udevd/90-selinux.rules /rootfs/usr/lib/udev/rules.d/
|
||||
COPY --chmod=0644 hack/lvm.conf /rootfs/etc/lvm/lvm.conf
|
||||
RUN <<END
|
||||
|
||||
@ -1,13 +0,0 @@
|
||||
ACTION!="add", GOTO="net_name_slot_end"
|
||||
SUBSYSTEM!="net", GOTO="net_name_slot_end"
|
||||
NAME!="", GOTO="net_name_slot_end"
|
||||
|
||||
IMPORT{cmdline}="net.ifnames"
|
||||
ENV{net.ifnames}=="0", GOTO="net_name_slot_end"
|
||||
|
||||
NAME=="", ENV{ID_NET_NAME_ONBOARD}!="", NAME="$env{ID_NET_NAME_ONBOARD}"
|
||||
NAME=="", ENV{ID_NET_NAME_SLOT}!="", NAME="$env{ID_NET_NAME_SLOT}"
|
||||
NAME=="", ENV{ID_NET_NAME_PATH}!="", NAME="$env{ID_NET_NAME_PATH}"
|
||||
NAME=="", ENV{ID_NET_NAME_MAC}!="", NAME="$env{ID_NET_NAME_MAC}"
|
||||
|
||||
LABEL="net_name_slot_end"
|
||||
15
hack/udevd/99-default.link
Normal file
15
hack/udevd/99-default.link
Normal file
@ -0,0 +1,15 @@
|
||||
# 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, use "networkctl edit". See networkctl(1) for details.
|
||||
# This file should not be edited in place, because it'll be overwritten on upgrades.
|
||||
|
||||
[Match]
|
||||
OriginalName=*
|
||||
|
||||
[Link]
|
||||
NamePolicy=keep kernel database onboard slot path mac
|
||||
AlternativeNamesPolicy=database onboard slot path mac
|
||||
MACAddressPolicy=persistent
|
||||
Loading…
x
Reference in New Issue
Block a user