hostnamed: allow setting machine tags via udev rules (#42390)

This gives hostnamed a lot of love, and makes it possibly to "auto-tag"
a machine via a udev rule.

It builds on the machine tag concept added in v261.
This commit is contained in:
Lennart Poettering
2026-06-19 20:38:42 +02:00
committed by GitHub
15 changed files with 978 additions and 73 deletions
+2 -6
View File
@@ -265,9 +265,6 @@ SPDX-License-Identifier: LGPL-2.1-or-later
- sysupdate: add concept for enabling/disabling specific components explicitly,
just like features.
- udev: add a MACHINE_TAGS field, that augments /etc/machine-info configured
tags.
- hostnamectl: management, collation of all tags. four sources: udev,
/etc/machine-info, credentials, and /etc/machine-tags.d/*.conf
@@ -780,7 +777,6 @@ SPDX-License-Identifier: LGPL-2.1-or-later
- clean up date formatting and parsing so that all absolute/relative timestamps we format can also be parsed
- **complete varlink introspection comments:**
- io.systemd.Hostname
- io.systemd.ManagedOOM
- io.systemd.Network
- io.systemd.PCRLock
@@ -2431,8 +2427,8 @@ SPDX-License-Identifier: LGPL-2.1-or-later
PR_SET_DUMPABLE so that it cannot be ptraced from the host. Should have
CAP_SYS_BPF as only service around.
- SIGRTMIN+18 and memory pressure handling should still be added to: hostnamed,
localed, oomd, timedated.
- SIGRTMIN+18 and memory pressure handling should still be added to: localed,
oomd, timedated.
- socket units: allow creating a udev monitor socket with ListenDevices= or so,
with matches, then activate app through that passing socket over