Skip to contentSkip to conversation

linuxptp: Add systemd instance specifier for ptp4l dependency

PATCH New Martin Schwan 1 participant 1 message Jul 30, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linuxptp: Add systemd instance specifier for ptp4l dependency

Add the instance specifier to the ptp4l dependency for the phc2sys service, so the corresponding service is automatically started correctly. This fixes the following error messages, when starting the phc2sys@... service:

Failed to restart [email protected]: Unit ptp4l.service not found.

---
 .../linuxptp/linuxptp/systemd/[email protected]             | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta-oe/recipes-connectivity/linuxptp/linuxptp/systemd/[email protected] +2 -2
index f66dd2d010..7d1d975ea3 100644
@@ -1,8 +1,8 @@
 [Unit]
 Description=Synchronize system clock or PTP hardware clock (PHC)
 Documentation=man:phc2sys
-Requires=ptp4l.service
-After=ptp4l.service
+Requires=ptp4l@%i.service
+After=ptp4l@%i.service
 Before=time-sync.target
 
 [Service]
Signature · 1 line
2.25.1