]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
99-systemd.rules.in: tag PTP devices with systemd
authorChris Patterson <cpatterson@microsoft.com>
Fri, 25 Aug 2023 21:23:40 +0000 (17:23 -0400)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 28 Aug 2023 09:42:27 +0000 (10:42 +0100)
Chronyd and similar time services, when using PTP devices, may need
the BindsTo/After directives to ensure the devices are available
before starting.  Tag PTP devices with systemd to allow for wider
adoption.

Signed-off-by: Chris Patterson <cpatterson@microsoft.com>
rules.d/99-systemd.rules.in

index b5a2b6aaeaa15601953e06ef34fb4633408b4305..0d68f31d361eaaf76914b21adedb93b7b4392cce 100644 (file)
@@ -12,6 +12,8 @@ ACTION=="remove", GOTO="systemd_end"
 SUBSYSTEM=="tty", KERNEL=="tty[a-zA-Z]*|hvc*|xvc*|hvsi*|ttysclp*|sclp_line*|3270/tty[0-9]*", TAG+="systemd"
 KERNEL=="vport*", TAG+="systemd"
 
+SUBSYSTEM=="ptp", TAG+="systemd"
+
 SUBSYSTEM=="ubi", TAG+="systemd"
 
 SUBSYSTEM=="block", TAG+="systemd"