diff options
author | Lennart Poettering <lennart@poettering.net> | 2024-04-22 17:30:58 +0200 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2024-04-22 23:49:57 +0200 |
commit | 6bd675a659a508cd1df987f90b633ed1c4b12cb3 (patch) | |
tree | a5068c4636d11e9325934d168c77e6056623f1f4 /network | |
parent | network: add "mac" to alternatives name policy by default (diff) | |
download | systemd-6bd675a659a508cd1df987f90b633ed1c4b12cb3.tar.xz systemd-6bd675a659a508cd1df987f90b633ed1c4b12cb3.zip |
network: add .link file to match 80-namespace.network
This file makes clear the interface shall be owned by networkd.
This does what 658169e6d307b5b1aea0d82b4a6430fa9d529c68 did for nspawn's
regular devices for the devices defined through
8aee931e7ae1adb01eeac0e1e4c0aef6ed3969ec too.
Diffstat (limited to 'network')
-rw-r--r-- | network/80-namespace-ns.link | 24 | ||||
-rw-r--r-- | network/meson.build | 1 |
2 files changed, 25 insertions, 0 deletions
diff --git a/network/80-namespace-ns.link b/network/80-namespace-ns.link new file mode 100644 index 0000000000..b640b98540 --- /dev/null +++ b/network/80-namespace-ns.link @@ -0,0 +1,24 @@ +# 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/80-container-ve.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. + +# This network file matches the host-side of the virtual Ethernet link +# created by systemd-nsresourced's network support. See systemd-nsresourced(1) for +# details. + +[Match] +Kind=veth +OriginalName=ns-* + +[Link] +NamePolicy=keep +Property=ID_NET_MANAGED_BY=io.systemd.Network diff --git a/network/meson.build b/network/meson.build index a1a87272f7..1141b17844 100644 --- a/network/meson.build +++ b/network/meson.build @@ -12,6 +12,7 @@ if conf.get('ENABLE_NETWORKD') == 1 '80-container-vz.network', '80-container-vz.link', '80-namespace-ns.network', + '80-namespace-ns.link', '80-vm-vt.network', '80-vm-vt.link', '80-wifi-adhoc.network', |