]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udev: create symlinks for s390 PTP devices
authorMiroslav Lichvar <mlichvar@redhat.com>
Tue, 14 Oct 2025 09:03:01 +0000 (11:03 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 14 Oct 2025 16:31:17 +0000 (18:31 +0200)
Similarly to the udev rules handling KVM and Hyper-V PTP devices, create
symlinks for the s390-specific STCKE and Physical clocks (supported
since Linux 6.13) to have some stable names that can be specified in
default configurations of PTP/NTP applications.

rules.d/50-udev-default.rules.in

index 078a78ad1ae56e882c41bae6af44c3d27d761665..9264b8e021a36a662501756965510e139ada434e 100644 (file)
@@ -34,6 +34,8 @@ SUBSYSTEM=="net", IMPORT{builtin}="net_driver"
 SUBSYSTEM=="ptp", GROUP="clock", MODE="0660"
 SUBSYSTEM=="ptp", ATTR{clock_name}=="KVM virtual PTP", SYMLINK+="ptp_kvm"
 SUBSYSTEM=="ptp", ATTR{clock_name}=="hyperv", SYMLINK+="ptp_hyperv"
+SUBSYSTEM=="ptp", ATTR{clock_name}=="s390 Physical Clock", SYMLINK+="ptp_s390_physical"
+SUBSYSTEM=="ptp", ATTR{clock_name}=="s390 STCKE Clock", SYMLINK+="ptp_s390_stcke"
 
 ACTION!="add", GOTO="default_end"