]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udev rules: add udev rule to create /dev/ptp_kvm (#5495)
authorLennart Poettering <lennart@poettering.net>
Tue, 28 Feb 2017 20:28:21 +0000 (21:28 +0100)
committerGitHub <noreply@github.com>
Tue, 28 Feb 2017 20:28:21 +0000 (21:28 +0100)
Its necessary to specify the KVM PTP device name in userspace.

In case a network card with PTP device is assigned to the guest,
it might be the case that KVM PTP gets /dev/ptp0 instead of /dev/ptp1.

Fix a device name for the KVM PTP device.

rules/50-udev-default.rules

index e9eeb8518ef3629c5150df847de0ad5922a69c60..3347c8cd89e98e14c60667d3102a42ead69b03b6 100644 (file)
@@ -74,4 +74,6 @@ KERNEL=="tun", MODE="0666", OPTIONS+="static_node=net/tun"
 
 KERNEL=="fuse", MODE="0666", OPTIONS+="static_node=fuse"
 
+SUBSYSTEM=="ptp", ATTR{clock_name}=="KVM virtual PTP", SYMLINK += "ptp_kvm"
+
 LABEL="default_end"