summaryrefslogtreecommitdiff
path: root/src/systemd
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2026-10-31 11:51:09 +0100
committerGitHub <noreply@github.com>2026-10-31 11:51:09 +0100
commitdfd2b46ff41af4edf2fd4a2a1b9fae1efe48c145 (patch)
tree9c5538ea145c2a869bdf379398219aa74730bd86 /src/systemd
parentc15665309e2991e6de5f99bf375de83d167c4248 (diff)
parent6bef88ed9c11210855689bd78a39ee032fb27731 (diff)
downloadvyos-1x-dfd2b46ff41af4edf2fd4a2a1b9fae1efe48c145.tar.gz
vyos-1x-dfd2b46ff41af4edf2fd4a2a1b9fae1efe48c145.zip
Merge pull request #5479 from c-po/T3871-ifname-store
T3871: bind interface names to hardware slots instead of hw-id
Diffstat (limited to 'src/systemd')
-rw-r--r--src/systemd/vyos-net-name-resolve-hotplug.service13
-rw-r--r--src/systemd/vyos-net-name-resolve.service12
2 files changed, 18 insertions, 7 deletions
diff --git a/src/systemd/vyos-net-name-resolve-hotplug.service b/src/systemd/vyos-net-name-resolve-hotplug.service
new file mode 100644
index 000000000..d52fc6061
--- /dev/null
+++ b/src/systemd/vyos-net-name-resolve-hotplug.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=VyOS persistent interface naming for hot-plugged hardware
+
+# Pulled in by 60-vyos-net-hotplug.rules when a network device appears.
+# Held off until the boot-time configuration has been applied, otherwise the
+# boot storm of "add" events would each queue a redundant run.
+ConditionPathExists=/tmp/vyos-config-status
+
+[Service]
+Type=oneshot
+ExecStart=/usr/libexec/vyos/system/vyos-net-name-resolve.py --hotplug
+TimeoutStartSec=90
+StandardOutput=journal
diff --git a/src/systemd/vyos-net-name-resolve.service b/src/systemd/vyos-net-name-resolve.service
index ec7c45636..8ad1c3418 100644
--- a/src/systemd/vyos-net-name-resolve.service
+++ b/src/systemd/vyos-net-name-resolve.service
@@ -1,17 +1,15 @@
[Unit]
-Description=VyOS deterministic hw-id based interface naming
+Description=VyOS persistent interface naming
Documentation=man:vyos-net-name-resolve.py(8)
-# Started explicitly by vyos-router (like frr.service/vyos-netlinkd.service)
-# once /opt/vyatta/etc/config is mounted and config.boot exists - which, for
-# an encrypted config volume, only happens after vyos-router has unlocked
-# and mounted it. It cannot be ordered independently before vyos-router:
-# there is no config.boot to read before that point.
+# Started by vyos-router once the config directory is mounted - for an
+# encrypted volume that is only after it has been unlocked - so this can not
+# be ordered independently. This is the boot pass; hot-plugged hardware is
+# named by vyos-net-name-resolve-hotplug.service, which passes --hotplug.
DefaultDependencies=no
[Service]
Type=oneshot
-RemainAfterExit=yes
ExecStart=/usr/libexec/vyos/system/vyos-net-name-resolve.py
TimeoutStartSec=90
StandardOutput=journal+console